Skip to content

Commit b1c5fd9

Browse files
committed
Merge pull request #361 from thewiep/ntpclient_1
Use correct variable for sendNTPpacket
2 parents 06fcbf0 + 5c1ee1f commit b1c5fd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WiFi/examples/NTPClient/NTPClient.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void loop()
7272
//get a random server from the pool
7373
WiFi.hostByName(ntpServerName, timeServerIP);
7474

75-
sendNTPpacket(timeServer); // send an NTP packet to a time server
75+
sendNTPpacket(timeServerIP); // send an NTP packet to a time server
7676
// wait to see if a reply is available
7777
delay(1000);
7878

0 commit comments

Comments
 (0)