Post topics, source code that relate to the Arduino Platform

User avatar
By Markus N.
#82048 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 ?