Skip to content
Version 6.1.0
Contact Us

BACnetStack_SetPropertyEnabled

bool BACnetStack_SetPropertyEnabled(
const uint32_t deviceInstance,
const uint16_t objectType,
const uint32_t objectInstance,
const uint32_t propertyIdentifier,
const bool enabled);

Enables a device or object property.

The device and/or object must already exist. This function is used primarly to enable optional properties. For example: description.

Parameter Direction Description
deviceInstance in The instance number of the device that contains the object whose property will be enabled.
objectType in The object type of the object whose property will be enabled. 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 enabled.
propertyIdentifier in The property to enable. See BACnetPropertyIdentifier for more info.
enabled in True to enable, false to disable… Recommended value: true

True if successful, false if failed.

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