esp_netif_sntp_sync_wait() function
Wait for time sync event
Arguments
tout
Specified timeout in RTOS ticks
Return value
ESP_TIMEOUT if sync event didn't came withing the timeout ESP_ERR_NOT_FINISHED if the sync event came, but we're in smooth update mode and still in progress (SNTP_SYNC_STATUS_IN_PROGRESS) ESP_OK if time sync'ed
esp_netif_sntp_sync_wait() calls 3 functions:
![]()
esp_netif_sntp_sync_wait()
esp_netif_sntp_sync_wait() reads 4 variables:
![]()
esp_netif_sntp_sync_wait()