BACnetStorePropertyInstanceByHandle (FUN)

FUNCTION BACnetStorePropertyInstanceByHandle : IEC_BACNET_STATUS

Same function as BACnetStorePropertyInstance but uses handle to object instead of an device instance number and object idenfier.

InOut:

Scope

Name

Type

Comment

Return

BACnetStorePropertyInstanceByHandle

IEC_BACNET_STATUS

Input

handleToObject

IEC_BACNET_HANDLE

A valid handle to the object retrieved by a call to BACnetGetObjectHandle.

ePropertyID

IEC_BACNET_PROPERTY_ID

The Property identifier of the local property.

nIndex

IEC_BACNET_ARRAY_INDEX

The index of an array item. If the Property is not an array, the index value BACNET_VOID_INDEX (-1) should be used. If the Property is an array, the index value BACNET_ENTIRE_ARRAY (-1) can be used to write the entire array. If the Property is an array, the index value BACNET_ARRAY_COUNT (0) can be used to resize the array provided that this array can be variable size. The indices of BACnet arrays start counting at 1.

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.