BACnetStack_RegisterCallbackSetSystemTime
void BACnetStack_RegisterCallbackSetSystemTime( bool (*FPCallbackSetSystemTime)(const uint32_t deviceInstance, const uint8_t yearMinus1900, const uint8_t month, const uint8_t day, const uint8_t weekday, const uint8_t hour, const uint8_t minute, const uint8_t second, const uint8_t hundredthSecond));Registers a callback the stack calls to set the host’s system time, in response to a TimeSynchronization or UTCTimeSynchronization BACnet message.
See also: CASBACnetStack::FPCallbackSetSystemTime
BACnet reference: ANSI/ASHRAE 135-2024 clause 16.7 (TimeSynchronization Service); clause 16.8 (UTCTimeSynchronization Service).
Parameters
Section titled “Parameters”| Parameter | Direction | Description |
|---|---|---|
FPCallbackSetSystemTime |
in | The function pointer for the CallbackSetSystemTime function. See CASBACnetStack::FPCallbackSetSystemTime for more info. |
Callback type
Section titled “Callback type”Topic: Data link and system callbacks. Declared in CASBACnetStackDLL.h.