Replies: 1 comment 1 reply
-
The The class where the blocking nature of It's been a long time since I have looked at this code, so I don't know if I remember all the relevant details. Take a look at a previous discussion #6 where I seemed to have discussed some of this with someone else. Maybe my previous self was better informed than my current self. Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
More a question than an issue.
I am using ESP32 modules and using the EspSntpClock object to create an NTP clock. The NTP server is local. I am then using ntpclock.getNow() in lots of places through my code to get current timestamps. Some of these calls are in callbacks that are supposed to complete quickly.
I read somewhere in the docs recently that this is a blocking call. I have not seen any issues with my code, nor noticed any impacts of blocking.
Is what I am doing ok, or should I be creating a systemClock object from the EspSntpClock and then calling the systemClock.getNow() to get timestamps?
Does the EspSntpClock.getNow() call out to the NTP server on every call?
Beta Was this translation helpful? Give feedback.
All reactions