NTP Client Example, working after bug fix UDP library
Posted: Thu Apr 09, 2015 9:26 am
UPDATE 11 april 2015 : A bug in the UDP library was fixed today and a working NTP example added to the git here:
https://github.com/esp8266/Arduino/blob/esp8266/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/examples/NTPClient/NTPClient.ino
I updated my running Mac OS download from github by replacing the ESP8266WiFi directory, and uploaded the NTPClient example. It runs OK:
The message below is not relevant anymore but I'll keep it for reference. I have removed the non-working example below.
======================================================================
Referring to the topic below on bidirectional UDP communication I compiled a sketch to get the time from an NTP server:
http://www.esp8266.com/viewtopic.php?f=28&t=2295
The sketch is attached below.
Sending the NTP request packet to an NTP server returns "success" (a 1), but no packet is received from the NTP server.
So I'm stuck here. Any suggestions?
<attachment removed>
https://github.com/esp8266/Arduino/blob/esp8266/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/examples/NTPClient/NTPClient.ino
I updated my running Mac OS download from github by replacing the ESP8266WiFi directory, and uploaded the NTPClient example. It runs OK:
The message below is not relevant anymore but I'll keep it for reference. I have removed the non-working example below.
======================================================================
Referring to the topic below on bidirectional UDP communication I compiled a sketch to get the time from an NTP server:
http://www.esp8266.com/viewtopic.php?f=28&t=2295
The sketch is attached below.
Sending the NTP request packet to an NTP server returns "success" (a 1), but no packet is received from the NTP server.
So I'm stuck here. Any suggestions?
<attachment removed>