-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NTPClient::update() now always returns false
#172
Comments
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as duplicate.
This comment was marked as duplicate.
I've recently started using this repo on ESP32. So it's supposed to get the date/time from NTP server and show on an LED dot matrix (like a message board). However after a couple of hours the message board gets super slow. It took me a good amount of time to figure out the problem is - potentially - this repo (initially I was mostly looking at hardware/power failure). // this is part of loop():
timeClient_millis = millis();
timeClient.update();
timeClient_millis = millis() - timeClient_millis; and show this |
Also not working for me... But as i have also serious issues with painless mesh (doesn't work at all) i believe the problems are in the esp-core-package... |
For me it is working just fine. |
@Ales-Svoboda Care to share the code you are using? For me, it worked fine for more than a year 24/7 in a remote application and then one day it just quit working. I would love to see what you are doing that works and how it differs from the code I posted. I have to assume that the NTP server changed something and that caused issues with what I was doing. There seem to be several people having issues so it would help them. Maybe it works now, I quit using it so don't really know. |
No problem, here you go:
This code runs on M5Stack Core with ESP32. |
false
Anyone found a solution to this? I've tried the example code and the code above by @Ales-Svoboda and can't get it to work. It's really odd since a couple days ago it was working. |
I gave up on HTPClient. I built a webpage in php that gets time(), does the calculations I need, and I just call that page to get what I need. This has the advantage of dealing with daylight savings time. Much better for my application. |
I have NTPClient on a remote ESP32 monitor that checks the time once a day normally. If it fails, it tries again in half an hour. It has been running fine since late 2020.
A few day ago
timeClient.update()
andtimeClient.forceUpdate()
quit working. It has been trying and failing every half hour and sending me an email that it failed 48 times a day for several days.I ran it at home on a different ESP and confirmed that it does not work and that it isn't just the remote environment.
My code is based on the randomnerdtutorials code which seems pretty standard. I added a timeout giving 20 tries. It never completes. At home I gave it infinite tries and it never is successful.
I know this code is good because it worked for over a year.
Additional context
Additional reports
false
#172 (comment)The text was updated successfully, but these errors were encountered: