IEC_BACNET_PROPERTY_CONTENTS (STRUCT)ΒΆ

TYPE IEC_BACNET_PROPERTY_CONTENTS : STRUCT

Commonly used structure for storing and transfering BACnet service and object property values.

InOut:

Name

Type

Comment

tag

IEC_BACNET_DATA_TYPE

Type of data contents in this buffer

nElements

IEC_BACNET_ELEMENT_COUNT

Number of elements in this buffer

buffer

IEC_BACNET_BUFFER

Decoded BACnet value see also ref BACnetComplexDefines

rawBuffer

IEC_BACNET_BUFFER

This member is filled in the callback or service hook by the BACnet API and does point to the raw BACnet encoded property value which might be of interest by some applications.

NOTE: This buffer is pointing to temporarily allocated memory which is only valid during execution of the callback and its contents has to be copied if the application requires it later. After a call to one of the ::BACnetRetrievePropertyInstance functions this pointer references into the internal database allocated memory which probably will get invalid on the next property value change.