BACnetRegisterTimeProviderFunction (FUN)¶
FUNCTION BACnetRegisterTimeProviderFunction : IEC_BACNET_STATUS
Registers a user application callback TO provide the BACnet API with correct system clock or system time information. The user application gives the BACnet API the opportunity to request a valid system clock or system time on such OS plattforms which do not provide them in the standard functions like time() or gettimeofday(). The user application, on the other side, has so the opportunity to “simulate” the system clock or system time. Please keep in mind that this callback might be called very often by the BACnet API if there are many time related actions configured.
- InOut:
Scope
Name
Type
Comment
Return
BACnetRegisterTimeProviderFunctionInput
pICallbackCmpEventMgr.ICmpEventCallbackA pointer to the callback which has to be provided by the user application. The callback will be called if the BACnet API request a system time.