Skip to content
Version 6.1.0
Contact Us

BACnetStack_RegisterCallbackSetPropertyOctetString

void BACnetStack_RegisterCallbackSetPropertyOctetString(
bool (*CallbackSetPropertyOctetString)(const uint32_t deviceInstance, const uint16_t objectType, const uint32_t objectInstance, const uint32_t propertyIdentifier, const uint8_t *value, const uint32_t length, 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 an OctetString-typed property in the host application, in response to a WriteProperty(Multiple) request.

The stack also calls it to hand over an MS/TP Network Port’s MAC_Address that a matching You-Are assigned (cl. 16.11.4). The call comes when the pending Network Port changes are activated, not when the You-Are arrives. Return false to refuse it: the activation then fails and the MAC stays pending. Keeping the MAC across restarts is the host’s job.

See also: CASBACnetStack::FPCallbackSetPropertyOctetString

Parameter Direction Description
CallbackSetPropertyOctetString in The function pointer for the CallbackSetPropertyOctetString function. See CASBACnetStack::FPCallbackSetPropertyOctetString for more info.

FPCallbackSetPropertyOctetString

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