-->
Page 1 of 1

NTP examples 2 seconds behind

PostPosted: Sun Apr 28, 2019 5:38 am
by Markus N.
Hi,

For my very first ESP8266 project, I need the current time. I've tested some NTP examples, but all of them are 2 seconds behind, compared to the PC that's configured to use the same NTP server as my test sketch.
It's not network delay ... in nearly all cases, the time between sending the NTP request and getting the reply is way below 1 second.

These are the sketches I've tested:
All examples are left unchanged, except the WiFi SSID/Password and the NTP server to use.

What can I do to get a more accurate time ?