25 WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
28 Serial.printf(
"Connecting to %s ", WIFI_SSID);
29 while (WiFi.status() != WL_CONNECTED) {
33 Serial.println(
" CONNECTED");
Timer that syncs with NTP server.
void begin(long int sync_interval_ms=600000)
initialise the timer, set a sync interval to sync with NTP server
void print_utc_time()
Print the seconds since epoch.