Skip to content
Version 6.1.0
Contact Us

BACnetStack_GetInfoLength

uint32_t BACnetStack_GetInfoLength(void);

Returns the number of bytes BACnetStack_GetInfo() would write into infoString right now, EXCLUDING the NUL terminator - so a caller can allocate exactly length+1 bytes instead of guessing a size and retrying.

The info string’s content is build- and runtime-configuration-dependent (it reflects live state such as active COV subscription counts), so this must be queried fresh each time it is about to be used rather than cached and reused across calls.

The length BACnetStack_GetInfo() would return on success, or 0 on error.

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