Service callbacks
The callbacks that let your application take part in BACnet services the stack answers.
CreateObject and DeleteObject, ReinitializeDevice, DeviceCommunicationControl, Network Port commands, LifeSafetyOperation, AcknowledgeAlarm, received event notifications and text messages, WriteGroup, file access, and backup and restore. Each one documents the error codes it can send back.
Functions
Section titled “Functions”| Function | Summary |
|---|---|
BACnetStack_RegisterCallbackWriteGroupInhibitDelay() |
Registers the OPTIONAL CallbackWriteGroupInhibitDelay callback. |
BACnetStack_RegisterCallbackCreateObject() |
Registers the callback the stack calls when a CreateObject request asks the host to allocate an object. |
BACnetStack_RegisterCallbackDeleteObject() |
Registers the callback the stack calls to let the host release an object’s own resources. |
BACnetStack_RegisterCallbackReinitializeDevice() |
Registers the callback that performs a ReinitializeDevice request - warm start, cold start, activate changes, and the four backup/restore transitions. |
BACnetStack_RegisterCallbackNetworkPortCommand() |
Registers the callback that carries the host’s part of a WriteProperty of a Network Port object’s Command property (135-2024 cl. 12.56.16). |
BACnetStack_RegisterCallbackValidateNetworkPortChanges() |
Registers the host’s part of a VALIDATE_CHANGES written to a Network Port object’s Command property. |
BACnetStack_RegisterCallbackDeviceCommunicationControl() |
Registers the callback the stack calls to validate a DeviceCommunicationControl request before applying it. |
BACnetStack_RegisterCallbackLifeSafetyOperation() |
Registers a callback to trigger the device to perform a life-safety operation (e.g. silence, reset) on itself or a Life Safety Point/Zone object, in response to a LifeSafetyOperation BACnet message. |
BACnetStack_RegisterCallbackAcknowledgeAlarm() |
Registers a callback to trigger the device to handle acknowledging alarms. |
BACnetStack_RegisterCallbackEventNotificationReceived() |
Registers the callback that receives every valid event notification a local device receives. |
BACnetStack_RegisterCallbackReadFile() |
Registers the callback the stack calls to serve an AtomicReadFile request. |
BACnetStack_RegisterCallbackWriteFile() |
Registers the callback the stack calls to apply an AtomicWriteFile request. |
BACnetStack_RegisterCallbackReadFileRecord() |
Registers a callback to handle read file requests against File objects whose File_Access_Method is record access, and allows implementors to respond with whole records. |
BACnetStack_RegisterCallbackWriteFileRecord() |
Registers a callback to handle write file requests against File objects whose File_Access_Method is record access. |
BACnetStack_RegisterCallbackPrepareBackup() |
Registers the callback the stack calls to create the backup files a BACnet client will then read, on a ReinitializeDevice with reinitializedStateOfDevice = startBackup. |
BACnetStack_RegisterCallbackCompleteBackup() |
Registers the callback the stack calls to tear down a backup session and clean up the files it created. |
BACnetStack_RegisterCallbackPrepareRestore() |
Registers the callback the stack calls to create the files a BACnet client will WRITE the restore image into, on a ReinitializeDevice with reinitializedStateOfDevice = startRestore. |
BACnetStack_RegisterCallbackCompleteRestore() |
Registers the callback the stack calls to finish a restore session: apply the uploaded files and clean up, or - when the session was aborted - discard them and revert whatever the restore had already changed. |
BACnetStack_RegisterHookTextMessage() |
Registers a hook the stack calls when a ConfirmedTextMessage or UnconfirmedTextMessage is received. |