Skip to content

Commit 026a367

Browse files
authored
Update sketch.ino
Update NTP update interval as per arduino-libraries/NTPClient#185
1 parent 2c6806e commit 026a367

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sketch.ino

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ const char* password = "PASSWORD";
1111

1212
// Define the NTP client and server details
1313
WiFiUDP ntpUDP;
14-
NTPClient timeClient(ntpUDP, "ntp.time.nl");
14+
unsigned long _updateInterval = (1024*1000);
15+
NTPClient timeClient(ntpUDP, "ntp.time.nl", _updateInterval);
1516

1617
// Pins for TM1637 display
1718
#define CLK_PIN 12 // (D5)

0 commit comments

Comments
 (0)