Function esp_idf_svc::hal::sys::sntp_sync_time

source ยท
pub unsafe extern "C" fn sntp_sync_time(tv: *mut timeval)
Expand description

@brief This function updates the system time.

This is a weak-linked function. It is possible to replace all SNTP update functionality by placing a sntp_sync_time() function in the app firmware source. If the default implementation is used, calling sntp_set_sync_mode() allows the time synchronization mode to be changed to instant or smooth. If a callback function is registered via sntp_set_time_sync_notification_cb(), it will be called following time synchronization.

@param tv Time received from SNTP server.