Skip to content

Commit a13c873

Browse files
authored
Update NTP_Example.ino
1 parent 1933fc7 commit a13c873

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

NTP_Example.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ bool getNTPtime(int sec) {
123123
return true;
124124
}
125125

126+
127+
// This function is obsolete because the time() function only calls the NTP server every hour. So you can always use getNTPtime()
128+
// It can be deleted and only stays here for the video
129+
130+
/*
126131
void getTimeReducedTraffic(int sec) {
127132
tm *ptm;
128133
if ((millis() - lastEntryTime) < (1000 * sec)) {
@@ -136,6 +141,7 @@ void getTimeReducedTraffic(int sec) {
136141
ptm = localtime(&now);
137142
timeinfo = *ptm;
138143
}
144+
*/
139145

140146
void showTime(tm *localTime) {
141147
Serial.print(localTime->tm_mday);

0 commit comments

Comments
 (0)