Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By jimbob321
#25708 ok that works

Udp NTP Client


Code: Select all WiFi connected
IP address:
192.168.1.111
Starting UDP
Local port: 2390
sending NTP packet...
packet received, length=48
Seconds since Jan 1 1900 = 3648308667
Unix time = 1439319867
The UTC time is 19:04:27
sending NTP packet...
packet received, length=48
Seconds since Jan 1 1900 = 3648308678
User avatar
By martinayotte
#25723
jimbob321 wrote:this is the error from arduino 1.6.5 Time_NTP.pde


Is this an error with another project ?
Last edited by martinayotte on Tue Aug 11, 2015 4:26 pm, edited 1 time in total.
User avatar
By martinayotte
#25724
jimbob321 wrote:ok that works

Udp NTP Client


Code: Select all WiFi connected
IP address:
192.168.1.111
Starting UDP
Local port: 2390
sending NTP packet...
packet received, length=48
Seconds since Jan 1 1900 = 3648308667
Unix time = 1439319867
The UTC time is 19:04:27
sending NTP packet...
packet received, length=48
Seconds since Jan 1 1900 = 3648308678


So, that is the one I suggested ?
Good !
Next step is to find differences between your first one and this one.
User avatar
By jimbob321
#25732 ok i reloaded with no changes and got this. the "no" is gone on the received ntp response.
so i am unsure if it got the time or not

...WiFi connected
IP address:
192.168.1.111
Receive NTP Response