Skip to content
Version 6.1.0
Contact Us

BACnetStack_SetPropertyWritable

bool BACnetStack_SetPropertyWritable(
const uint32_t deviceInstance,
const uint16_t objectType,
const uint32_t objectInstance,
const uint32_t propertyIdentifier,
const bool writable);

Makes a device’s or object’s property writable.

The device and/or object must already exist. This function allows BACnet Clients to write to an object’s property using WriteProperty or WritePropertyMultiple if supported

Parameter Direction Description
deviceInstance in The instance number of the device that contains the object whose property will be made writable.
objectType in The object type of the object whose property will be made writable. See CASBACnetStack::BACnetObjectType for more info. With objectInstance, this is one BACnet Object Identifier carried as two parameters (see the API conventions).
objectInstance in The object instance of the object whose property will be made writable.
propertyIdentifier in The property to make writable. See BACnetPropertyIdentifier for more info.
writable in True to make property writable, false to make property read-only. Recommended value: true

True if successful, false if failed.

Topic: Objects and properties. Declared in CASBACnetStackDLL.h.