Skip to content

Commit 54b35a7

Browse files
committed
Merge pull request #361 from thewiep/ntpclient_1
Use correct variable for sendNTPpacket
2 parents 5dbc9ef + 790606a commit 54b35a7

File tree

1 file changed

+1
-1
lines changed
  • hardware/esp8266com/esp8266/libraries/ESP8266WiFi/examples/NTPClient

1 file changed

+1
-1
lines changed

hardware/esp8266com/esp8266/libraries/ESP8266WiFi/examples/NTPClient/NTPClient.ino

Lines changed: 1 addition & 1 deletion
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)