Added WriteProperty setter for BACnet Unsigned Integer values. (#834)
This commit is contained in:
@@ -46,6 +46,15 @@ typedef struct BACnet_Write_Property_Data {
|
||||
*/
|
||||
typedef bool (*write_property_function)(BACNET_WRITE_PROPERTY_DATA *wp_data);
|
||||
|
||||
/**
|
||||
* @brief API for setting a BACnet Unsigned Integer property value
|
||||
* @param object_instance [in] Object instance number
|
||||
* @param value [in] New value to set
|
||||
* @return true if successful, else false
|
||||
*/
|
||||
typedef bool (*bacnet_property_unsigned_setter)(
|
||||
uint32_t object_instance, BACNET_UNSIGNED_INTEGER value);
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
@@ -86,6 +95,13 @@ bool write_property_empty_string_valid(
|
||||
const BACNET_APPLICATION_DATA_VALUE *value,
|
||||
size_t len_max);
|
||||
|
||||
BACNET_STACK_EXPORT
|
||||
bool write_property_unsigned_decode(
|
||||
BACNET_WRITE_PROPERTY_DATA *wp_data,
|
||||
BACNET_APPLICATION_DATA_VALUE *value,
|
||||
bacnet_property_unsigned_setter setter,
|
||||
BACNET_UNSIGNED_INTEGER maximum);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
Reference in New Issue
Block a user