BACnetStorePropertyInstance
(FUN)
FUNCTION BACnetStorePropertyInstance : IEC_BACNET_STATUS
Writes a property value to the BACnet server database.
This routine is the low level equivalent of BACnetWritePropertyInstance. It stores a new value directly into a local Property in the BACnet server API database. Only basic data type checks are done. No priorization and no access rights check is done here.
- InOut:
Scope
Name
Type
Comment
Return
BACnetStorePropertyInstance
A status indicating if the operation worked.
Input
deviceInstNumber
Instance number of a Device Object.
pObjectID
POINTER TO IEC_BACNET_OBJECT_ID
A pointer to the Object Identifier.
propID
The Property identifier of the local property.
nIndex
DINT
Use array-indices for specific element of an array property. If the array index is not available, an error is returned. You can use -1 for non array properties. Indizes Count from 1. Using -1 for arrays initiates writing the whole array. Do not use 0.
pVal
POINTER TO IEC_BACNET_PROPERTY_CONTENTS
Pointer to a Property Contents containing the value of the Property. The Property Contents tag attribute must indicate the data type of the Property.