| 48 | } |
| 49 | |
| 50 | void init() { |
| 51 | setTimeFromNvs(); |
| 52 | |
| 53 | esp_sntp_config_t config = ESP_NETIF_SNTP_DEFAULT_CONFIG("time.cloudflare.com"); |
| 54 | config.sync_cb = onTimeSynced; |
| 55 | esp_netif_sntp_init(&config); |
| 56 | } |
| 57 | |
| 58 | #else |
| 59 |
nothing calls this directly
no test coverage detected