Skip to content
Version 6.1.0
Contact Us

BACnetStack_GetBACnetStackSetting

uint32_t BACnetStack_GetBACnetStackSetting(const uint32_t deviceInstance, const uint32_t setting);

Reads back a setting previously applied with BACnetStack_SetBACnetStackSetting().

Symmetric with the setter and scoped the same way.

For a real deviceInstance this returns the EFFECTIVE value - that device’s own override if it set one, otherwise the process default. Pass BACNET_STACK_SETTING_ALL_DEVICES to read the default itself. Those two can differ, and comparing them is how a caller tells “this device overrides the default” from “this device follows it”.

Parameter Direction Description
deviceInstance in The device to query, or BACNET_STACK_SETTING_ALL_DEVICES for the process default.
setting in One of the BACnetStackSetting identifiers.

The effective value of the setting, or BACNET_STACK_SETTING_DISABLED (0xFFFFFFFF) if the setting id is unknown or deviceInstance names a device that has not been added. Note that BACNET_STACK_SETTING_DISABLED is also a legitimate value for settings that use it as their “no limit” sentinel, so it does not by itself indicate an error for those settings.

Topic: Version, information and settings. Declared in CASBACnetStackDLL.h.