BACnetWritePropertyInstance (FUN)ΒΆ
FUNCTION BACnetWritePropertyInstance : IEC_BACNET_STATUS
Updates an object property with new data value.
This function works like ::BACnetStorePropertyInstance does but it emulates the access like an external WriteProperty access from an external BACnet client. All access, priorization and range checks are executed by this call and on return the occurred BACnet error code will be returned.
Return: IEC_BACNET_STATUS
- InOut:
Scope
Name
Type
Comment
Return
BACnetWritePropertyInstanceInput
instNumberThe device instance number in which the object exists.
pObjectIDPOINTER TO IEC_BACNET_OBJECT_ID
A pointer to the object Identifier.
ePropertyIDThe Property identifier of the local property.
nIndexThe optional index information of an array item from a property if this property contains an array. BACnet array indexes start counting at 1.
priorityThe priority level for the Write-Property request, in case the Property is a commandable Property. If not the priority level BACNET_VOID_PRI should be used.
pValuePOINTER TO IEC_BACNET_PROPERTY_CONTENTS
Pointer to a property pontents containing a buffer which contains the value.
pValueSrcPOINTER TO IEC_BACNET_AUDIT_VALUE_SOURCE
Pointer to a value source structure which describes the source of the new value.
pErrorPOINTER TO IEC_BACNET_ERROR
A pointer to store the returned BACnet error code.