Explorar o código

Update NTP sync less often (15 minutes)

Lixie Labs %!s(int64=6) %!d(string=hai) anos
pai
achega
0da813bce4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/ESP8266_ONLY/WIFI_NTP_CLOCK/WIFI_NTP_CLOCK.ino

+ 1 - 1
examples/ESP8266_ONLY/WIFI_NTP_CLOCK/WIFI_NTP_CLOCK.ino

@@ -55,7 +55,7 @@
 
 Lixie_II lix(DATA_PIN, NUM_DIGITS);
 WiFiUDP ntp_UDP;
-NTPClient time_client(ntp_UDP, "pool.ntp.org", 3600, 60000);
+NTPClient time_client(ntp_UDP, "pool.ntp.org", 3600, 900000); // Updates NTP sync every 15 minutes
 #define SECONDS_PER_HOUR 3600
 bool time_found = false;