esp8266-remote-timer

ESP8266 based timer w/ remote control and NTP sync
Index Commits Files Refs README LICENSE
commit c5b04ebf5eca44466ca37f8eba50712eca0d77a5
parent 747a6f2e1472cdae602471a3aa9ab1f91331ebd3
Author: Martin Kloeckner <mjkloeckner@gmail.com>
Date:   Thu, 27 Mar 2025 11:49:09 -0300

change NTP time update interval to every minute

units of constructor `NTPClient` are ms

Diffstat:
Msrc/main.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.cpp b/src/main.cpp
@@ -15,7 +15,7 @@ WebSocketsServer web_socket = WebSocketsServer(81);
 JSONVar data, system_time_data;
 WiFiUDP ntpUDP;
 
-NTPClient system_time(ntpUDP, "pool.ntp.org", 0, 3600); // UTC Time
+NTPClient system_time(ntpUDP, "pool.ntp.org", 0, 3600*1000); // UTC Time
 
 #define REMOTE_LED_PIN LED_BUILTIN
 #define MAIN_OUTPUT_PIN 5