#pragma once #include "esp_err.h" #include "freertos/FreeRTOS.h" /** Initialize and start periodic SNTP synchronization. */ esp_err_t time_sync_start(void); /** Wait for the first successful synchronization and log local time. */ esp_err_t time_sync_wait(TickType_t timeout);