ntptime (peterhinch) #13694
-
After running this version without any problems for >6months, I am now experience a low-success rate at getting NTPtime. Both ESP32 and ESP32 SPIRAM variants. I have tried extending the retry time out to 70 seconds to no apparent improvement. Just wondering if other people are having problems getting NTPtime recently. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 17 replies
-
I have a rpi picoW board that runs the Peter Hinch NTPtime every night so that the time never drifts on its internal RTC and it appears to be still running and showing the correct time on my display screen. Checking my code I see the function that gets the NTP time can return True or False, but the calling of that function has been put in a loop to await a True response so I cant be sure that it did not loop a few times before getting the time but its not stuck in an endless loop. So its appears OK for a rpi pico at least. However the MP version on that board has been left at V1.20 |
Beta Was this translation helpful? Give feedback.
-
Just a thought. Maybe your router has an inbuilt time server. My Fritzbox router does and once I realised it (for some reason I was reading the manual) I usually used this instead of reaching out to an ntp server on the web. |
Beta Was this translation helpful? Give feedback.
-
There is a lot to be said for doing this. I have a Raspberry Pi running 24/7. Among other tasks this runs one. |
Beta Was this translation helpful? Give feedback.
I adapted uping for async single packet ping https://github.com/zcattacz/uping_as . You can have a try if needed. It won't lock when waiting for response. Domain resolving is also kind of ping to your DNS server, it might lock, I am not sure.