EVT_BACNET_CLIENT_VALUE (STRUCT)

TYPE EVT_BACNET_CLIENT_VALUE : STRUCT

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

This is the declaration prototype for the callback function which is registered with ::BACnetRegisterClientDataPoint. It is called in case of the reception of a new value for the registered device object property.

InOut:

Name

Type

Comment

devId

IEC_BACNET_INST_NUMBER

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

pObjId

POINTER TO IEC_BACNET_OBJECT_ID

A pointer to the object identifier from which object the value was received.

propId

IEC_BACNET_PROPERTY_ID

The property identifier from which property the value was received.

index

IEC_BACNET_ARRAY_INDEX

The property index from which property the value was received. If no array is accessed this has a value of ::BACNET_VOID_INDEX.

pValue

POINTER TO IEC_BACNET_PROPERTY_CONTENTS

The property contents structure which holds the current received value. This may be NULL in case some error occurred and no value could be acquired yet.

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.

bValuePolled

IEC_BACNET_BOOLEAN

In case of an enabled fallback to use polling instead of COV(-P) this flag indicates if the returned value has been received over COV(-P). In this case the value is FALSE. Or the returned value has been received over services read-property(-multiple). In this case the value is TRUE.

pUserArg

POINTER TO IEC_BACNET_BYTE

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