BACnetServer.RegisterCallback
(METH)
METHOD RegisterCallback : CmpBACnet.IEC_BACNET_STATUS
Registers a FB implementing IBACnetEventConsumer (itfEvent) to a BACnet-Stack-Callback of type eCallbackType. Since a callback may have a release event, too (occuring after the returned information of the first call has been processed; at the moment only supported by BACNET_CALLBACK_READ), another FB implementing IBACnetEventConsumer (itfReleaseEvent) may be registered also. The method of the IBACnetEventConsumer interface gets called whenever the specified callback occurs after registration.
Note
For callbacks to occur for a specific BACnet-Object-Property call “SetPropertyCallbackAttachment” of the specific object in order to activate the callback for the specific BACnet-Object-Property. Without activation no callbacks will occur (assuming the predefined settings are used).
- InOut:
Scope
Name
Type
Initial
Comment
Return
RegisterCallback
CmpBACnet.IEC_BACNET_STATUS
Input
eCallbackType
CmpBACnet.IEC_BACNET_CALLBACK_TYPE
The callback type to register for.
itfEvent
The event consumer to register to the callback event.
itfReleaseEvent
0
The event consumer to register to the release callback event.