mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
Merge pull request #361 from thewiep/ntpclient_1
Use correct variable for sendNTPpacket
This commit is contained in:
commit
b1c5fd97c9
@ -72,7 +72,7 @@ void loop()
|
|||||||
//get a random server from the pool
|
//get a random server from the pool
|
||||||
WiFi.hostByName(ntpServerName, timeServerIP);
|
WiFi.hostByName(ntpServerName, timeServerIP);
|
||||||
|
|
||||||
sendNTPpacket(timeServer); // send an NTP packet to a time server
|
sendNTPpacket(timeServerIP); // send an NTP packet to a time server
|
||||||
// wait to see if a reply is available
|
// wait to see if a reply is available
|
||||||
delay(1000);
|
delay(1000);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user