Added write present value callbacks for Analog Value and Integer Value basic object examples. (#956)

This commit is contained in:
dmitttri
2025-04-01 15:56:20 +02:00
committed by GitHub
parent ca6a6f3a88
commit 921264b2c2
4 changed files with 77 additions and 6 deletions
+13
View File
@@ -20,6 +20,15 @@
extern "C" {
#endif /* __cplusplus */
/**
* @brief Callback for gateway write present value request
* @param object_instance - object-instance number of the object
* @param old_value - integer preset-value prior to write
* @param value - integer preset-value of the write
*/
typedef void (*integer_value_write_present_value_callback)(
uint32_t object_instance, int32_t old_value, int32_t value);
BACNET_STACK_EXPORT
void Integer_Value_Property_Lists(
const int **pRequired, const int **pOptional, const int **pProprietary);
@@ -46,6 +55,10 @@ int Integer_Value_Read_Property(BACNET_READ_PROPERTY_DATA *rpdata);
BACNET_STACK_EXPORT
bool Integer_Value_Write_Property(BACNET_WRITE_PROPERTY_DATA *wp_data);
BACNET_STACK_EXPORT
void Integer_Value_Write_Present_Value_Callback_Set(
integer_value_write_present_value_callback cb);
BACNET_STACK_EXPORT
bool Integer_Value_Present_Value_Set(
uint32_t object_instance, int32_t value, uint8_t priority);