Skip to content

Commit d5bb4a9

Browse files
d-a-vdevyte
authored andcommitted
in example properly wait for NTP to be set (#4000)
fix #3905
1 parent d0a4900 commit d5bb4a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WiFi/examples/HTTPSRequestCACert/HTTPSRequestCACert.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void setup() {
5353
Serial.print("Setting time using SNTP");
5454
configTime(8 * 3600, 0, "pool.ntp.org", "time.nist.gov");
5555
time_t now = time(nullptr);
56-
while (now < 1000) {
56+
while (now < 8 * 3600 * 2) {
5757
delay(500);
5858
Serial.print(".");
5959
now = time(nullptr);

0 commit comments

Comments
 (0)