You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run a timeClient.update() or timeClient.forceUpdate() check every second.
This function sometimes makes the controller think for 7 seconds of time...
This is very critical.
The text was updated successfully, but these errors were encountered:
I had similar behavior when I was experimenting with time servers about two years ago and with a different library and found that the esp8266, that I was using needed quite a bit of time.
I then switched to using the IP-address directly on subsequent calls which was a great improvement.
However the time servers seem to change. So a valid IP now can be invalid a day later.
I then accidentally realized that my local router also was able to serve as an ntp server and since then I am using it as a souce.
This is lightning fast and to 99.9% reliable
I did not have to change anything in the configuration. The NTP functionality was on by default.
Maybe You should give that a try.
I never had a problem but at one point it could not continue. What I did was insert a delay like while (!timeClient.update()) { delay(100); timeClient.forceUpdate(); }
After this it worked, but it could be luck
I run a timeClient.update() or timeClient.forceUpdate() check every second.
This function sometimes makes the controller think for 7 seconds of time...
This is very critical.
The text was updated successfully, but these errors were encountered: