BACnetStack_SetPropertyByObjectTypeWritable
bool BACnetStack_SetPropertyByObjectTypeWritable( const uint32_t deviceInstance, const uint16_t objectType, const uint32_t propertyIdentifier, const bool writable);Per-object-TYPE variant of BACnetStack_SetPropertyWritable().
Sets writability on the object-type’s default template (applied to dynamically created objects and as the type-wide default) rather than on one existing object instance. See BACnetStack_SetPropertyByObjectTypeEnabled() for the per-instance vs. per-type-template distinction and the differing preconditions.
Parameters
Section titled “Parameters”| Parameter | Direction | Description |
|---|---|---|
deviceInstance |
in | The instance number of the device. |
objectType |
in | The object type whose default template will be changed. See CASBACnetStack::BACnetObjectType. |
propertyIdentifier |
in | The property to make writable. See BACnetPropertyIdentifier. |
writable |
in | True to make writable, false to make read-only. |
Returns
Section titled “Returns”True if successful, false if failed (e.g. the object type is not registered on the device).
Topic: Objects and properties. Declared in CASBACnetStackDLL.h.