EVT_BACNET_CLIENT_EVENT (STRUCT)

TYPE EVT_BACNET_CLIENT_EVENT : STRUCT

Declaration of the event receiving callback from the BACnet user application.

This is the declaration prototype for the callback function which is registered with ::BACnetRegisterClientEventNotification. It is called in case of the reception of an confirmed or unconfirmed event notification.

InOut:

Name

Type

Comment

devId

IEC_BACNET_INST_NUMBER

The BACnet device instance number from which the notification was received.

notifClass

IEC_BACNET_INST_NUMBER

The BACnet notification-class object instance number from which the notification was received.

pEventInfo

POINTER TO IEC_BACNET_EVENT_NOTIF_INFO

A pointer to the event notification information which was transmitted from the device. This may be NULL in case there has been an error in communication to the device. This member shall only be evaluated if parameter status has a value of ::BACNET_STATUS_OK.

status

IEC_BACNET_STATUS

The current status of the connection and subscription to the BACnet device.

pError

POINTER TO IEC_BACNET_ERROR

A pointer to enhanced error information if provided by the BACnet device. This may be NULL in case there isn’t any error information available.

pUserArg

POINTER TO IEC_BACNET_BYTE

A pointer for user application purposes. This pointer is the same pointer which was given by call to ::BACnetRegisterClientEventNotification on registration.