IBACnetEventConsumer.BACnetEventCallback (METH)ΒΆ

METHOD BACnetEventCallback : BOOL

This method gets called, whenever a event occurs for which the implementing FB is registered via BACnetServer.RegisterHook or BACnetServer.RegisterCallback. Since several FBs implementing IBACnetEventConsumer can be registered for one event or callback the following rules are used for the returned BOOL: If the method returns FALSE, all other registered IBACnetEventConsumer objects for the specified Hook/Callback are further called. If the method return TRUE, the other registeres IBACnetEventConsumer objects are not called anymore. The calling order is as the objects were registered. All calls have to treat on their own, whether the EventIds are correct (see CmpBACnet.EVENTIDS) and/or BACnet-Object-IDs or other additional data fits the needs of the registered FB (i.e. the specific BACnet-Object-FB).

InOut:

Scope

Name

Type

Comment

Return

BACnetEventCallback

BOOL

Input

EventId

DWORD

If only one event is possibly called, the following Ids can be ignored. If there are more at least the EventId should be checked, to get the right type of pParameter.

ID of the occured Event. Contains the class and the event (see CmpBACnet.EVENTIDS)

usParamId

WORD

Id of the parameter structure (see pParameter and CmpBACnet.EVENTIDS)

usVersion

WORD

Version of the parameter structure (see pParameter and CmpBACnet.EVENTIDS)

pParameter

POINTER TO BYTE

Pointer to the event specific parameter, that is specified by Id (see CmpBACnet.EVENTIDS and CmpBACnet, i.e. EVT_BACNET_ACKALARM)