mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
parent
d0a4900e2d
commit
d5bb4a99f6
@ -53,7 +53,7 @@ void setup() {
|
||||
Serial.print("Setting time using SNTP");
|
||||
configTime(8 * 3600, 0, "pool.ntp.org", "time.nist.gov");
|
||||
time_t now = time(nullptr);
|
||||
while (now < 1000) {
|
||||
while (now < 8 * 3600 * 2) {
|
||||
delay(500);
|
||||
Serial.print(".");
|
||||
now = time(nullptr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user