BACnetObjectBase.WritePropertyInstance (METH)ΒΆ
METHOD WritePropertyInstance : CmpBACnet.IEC_BACNET_STATUS
Sets the value/content of a specified BACnet-Property (ePropertyID) taking client side restrictions into account (access, priorization, range checks). In contrast to SetPropertyInstance all access, priorization and range checks are executed by this call and on return the occurred BACnet error code will be returned. The specified index should be set to -1, meaning that all elements of a List or Array in a BACnet-Property are stored. Otherwise an index counting from 1 specifies a element of a List or Array of a BACnet-Property, whereas this access method should be only used for BACnet-Property of constant array size. Moreover the IEC_BACNET_PEROPERTY_CONTENTS variable propertyContents holds the information to be written, whereas the data given in propertyContents.Buffer.pBuffer has to be in the format expected by the specified BACnet-Property-Type.
- InOut:
Scope
Name
Type
Comment
Return
WritePropertyInstanceCmpBACnet.IEC_BACNET_STATUSInput
ePropertyIDCmpBACnet.IEC_BACNET_PROPERTY_IDThe property ID of the property to write its instance data for.
nIndexDINTCounting from 1. See documentation of CmpBACnet.BACnetRetrievePropertyInstance.
priorityDINTThe priority to use when writing to the specified property value.
propertyContentsCmpBACnet.IEC_BACNET_PROPERTY_CONTENTSProperty-Contents to be written to the specified BACnet- Property.
Output
errorCmpBACnet.IEC_BACNET_ERRORBACnet error code.