Objects and properties
Adding and removing objects, and choosing which properties they have.
Most object types are created with BACnetStack_AddObject(); several types have their own add function, which is required for them. A property must be enabled before it can be read, and must be made writable before a client can write it. Required properties are enabled when the object is added; BACnetStack_SetPropertyEnabled() is mainly for optional ones. A property that becomes writable when its object is out of service, such as Present_Value of an input or value object, accepts a write while Out_Of_Service is true without being made writable. The values of most properties are served by your callbacks (Property value callbacks); call BACnetStack_UpdateValue() when a value you serve changes, so COV, trending and alarms see it. See Serving property values.
Functions
Section titled “Functions”| Function | Summary |
|---|---|
BACnetStack_AddObject() |
Adds a BACnet object to an existing device. |
BACnetStack_AddNetworkPortObject() |
Adds a BACnet Network Port Object. |
BACnetStack_ActivateNetworkPortPendingChanges() |
Activates the pending changes of one Network Port object, or of every Network Port object of a device. |
BACnetStack_AddTrendLogObject() |
Adds a BACnet Trend Log Object. |
BACnetStack_AddTrendLogMultipleObject() |
Adds a BACnet Trend Log Multiple Object. |
BACnetStack_AddElevatorGroupObject() |
Adds an Elevator Group Object. |
BACnetStack_AddLiftOrEscalatorObject() |
Adds a Lift or Escalator Object. |
BACnetStack_AddFileObject() |
Adds a File Object. |
BACnetStack_SetPropertyEnabled() |
Enables a device or object property. |
BACnetStack_SetPropertyByObjectTypeEnabled() |
Per-object-TYPE variant of BACnetStack_SetPropertyEnabled(). |
BACnetStack_SetProprietaryProperty() |
Sets the data type that is used in the callback for a object property. |
BACnetStack_SetPropertyWritable() |
Makes a device’s or object’s property writable. |
BACnetStack_SetPropertyByObjectTypeWritable() |
Per-object-TYPE variant of BACnetStack_SetPropertyWritable(). |
BACnetStack_SetPropertySubscribable() |
Makes a device’s or object’s property subscribable. |
BACnetStack_SetPropertyByObjectTypeSubscribable() |
Per-object-TYPE variant of BACnetStack_SetPropertySubscribable(). |
BACnetStack_SetObjectTypeCreatable() |
Allows objects of the specified object type to be created using the BACnet Create Object service. |
BACnetStack_RemoveObject() |
Removes an object from a device. |
BACnetStack_ObjectExists() |
Checks whether an object exists on the device or not. |
BACnetStack_AddEventLogObject() |
Adds a BACnet Event Log Object. |
BACnetStack_UpdateValue() |
Tells the stack that a value you serve has changed, so COV, trend logging and alarms see it. |