Skip to content
Version 6.1.0
Contact Us

BACnetStack_RegisterCallbackSetPropertyObjectIdentifier

void BACnetStack_RegisterCallbackSetPropertyObjectIdentifier(
bool (*CallbackSetPropertyObjectIdentifier)(const uint32_t deviceInstance, const uint16_t objectType, const uint32_t objectInstance, const uint32_t propertyIdentifier, const uint16_t valueObjectType, const uint32_t valueObjectInstance, const bool useArrayIndex, const uint32_t propertyArrayIndex, const uint8_t priority, uint32_t *errorCode));

Registers a callback the stack calls to write a new value to a BACnetObjectIdentifier-typed property in the host application, in response to a WriteProperty(Multiple) request.

The stack also calls it when a You-Are request that matches this device assigns it a new Device instance (cl. 16.11.4): once, with the Device object at its old instance, propertyIdentifier Object_Identifier and the new Device identifier as the value, after the stack’s own checks have accepted the assignment. Returning true lets the stack apply the new instance, so store it to keep it across restarts; returning false refuses the assignment and the device keeps its old instance. If the stack then cannot apply an assignment the callback accepted, it calls the callback once more, with the Device object at the new instance and the old identifier as the value, so the host can put back what it stored. With no callback registered, the stack applies the assignment without asking.

See also: CASBACnetStack::FPCallbackSetPropertyObjectIdentifier

Parameter Direction Description
CallbackSetPropertyObjectIdentifier in The function pointer for the CallbackSetPropertyObjectIdentifier function. See CASBACnetStack::FPCallbackSetPropertyObjectIdentifier for more info.

FPCallbackSetPropertyObjectIdentifier

Topic: Property value callbacks. Declared in CASBACnetStackDLL.h.