IEC_BACNET_WRITE_INFO (STRUCT)

TYPE IEC_BACNET_WRITE_INFO : STRUCT

The BACNET_WRITE_INFO data structure contains the information for the routine BACnetWriteProperty and the Write-Property application hook. This data type contains information about the property co-ordinates: object and Property IDs, Array index, Priority level, and also Property Contents.

InOut:

Name

Type

Comment

fFirstCallback

IEC_BACNET_BOOLEAN

A flag that indicates which hook callback is currently processed. If it’s value is True, the first hook callback is in progress. For request initiation with BACnetWriteProperty it shall be set to False. For more information look at BACNET_SRVR_INIT

objectID

IEC_BACNET_OBJECT_ID

This parameter, of type BACnetObjectIdentifier, provides the means of identifying the object whose property is to be modified.

ePropertyID

IEC_BACNET_PROPERTY_ID

This parameter, of type BACnetPropertyIdentifier, provides the means of uniquely identifying the property to be written by this service. Because this service is intended to write a single property of a single object, the value of this parameter shall not be one of the special property identifiers ALL, REQUIRED, or, OPTIONAL.

nIndex

IEC_BACNET_SIGNED

The optional property array index. Ihis is used only with array datatypes. For referencing non array datatypes BACNET_VOID_INDEX (-1) shall be used.

nWritePriority

IEC_BACNET_SIGNED

This parameter is an integer in the range 1-16, which indicates the priority assigned to this write operation.

sValue

IEC_BACNET_PROPERTY_CONTENTS

If access to the specified property of the specified object is successful, this parameter shall be used to replace the value of the property at the time of access. It shall be of any datatype that is valid for the property being modified.