BACnetSetCallback (FUN)
FUNCTION BACnetSetCallback : IEC_BACNET_STATUS
Sets or deletes the read and write callback.
Registers an application callbacks to be called when the API default actions processes an read or write access to some property. The callbacks are intended to update the value in the database when the value is accessed from the network or by internal processes in the API, thus providing the new value in the read callback or storing the value in the write callback. This routine can be called multiple times in order to reregister the callback procedure or even deregister it with a 0 pointer.
- InOut:
Scope
Name
Type
Comment
Return
BACnetSetCallbackA status indicating whether the operation worked.
Input
eCallbackTypeThe type of callback the user application want’s to register or unregister.
pICallbackCmpEventMgr.ICmpEventCallbackThe event-callback interface which is to be registered or unregistered.
pIReleaseCallbackCmpEventMgr.ICmpEventCallbackEvent-callback interface which notifies user application that it may release the buffer provided for the read callback value transfer. May be 0 if this service is not needed.