IEC_BACNET_RAW_ASN1_VALUE (STRUCT)

TYPE IEC_BACNET_RAW_ASN1_VALUE : STRUCT

Definition of the RAW ASN1 value structure.

A proprietary property may be defined in any object by the application. If the property cannot be represented by an existing data type, the application can provide “raw” ASN.1 representation of that data type. Similarly, if the BACnet decoder encounters a proprietary property, which data types is unknown, it passes the result to the application in the “raw” ASN.1 format. The BACNET_RAW_ASN1_VALUE structure is used for this purpose. It contains a reference to ASN.1 data and its length. A Property Contents containing data of this type have the data type tag equal to DATA_TYPE_PROPRIETARY or DATA_TYPE_EXTENDED. The DATA_TYPE_EXTENDED is used in the case where the combination of the object-type and property-identifier is known to the BACnet API, but it cannot be decoded (presumably this data type was extended, but it could be a result of incorrect encoding by the peer device too).

InOut:

Name

Type

Comment

nLength

IEC_BACNET_UNSIGNED

The given length expressed as a number of octets

rawData

IEC_BACNET_BYTE

A pointer to the “raw” ASN.1 data