1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-22 21:23:07 +03:00

Use correct variable for sendNTPpacket

This commit is contained in:
Wietse van Buitenen 2015-05-31 13:02:13 +02:00
parent 6387005c7f
commit 5c1ee1f7ad

View File

@ -72,7 +72,7 @@ void loop()
//get a random server from the pool
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
delay(1000);