Post links and attach files for documentation here, also chat about these docs freely

User avatar
By eriksl
#48800
chaeplin wrote:With Timlib by PaulStoffregen, sync is done every 5 min and can be adjusted.
https://github.com/PaulStoffregen/Time/ ... 66WiFi.ino
https://github.com/PaulStoffregen/Time/ ... #L312-L321

Not necessary. The SDK code contains an NTP client. It's just that you need to retrigger it every now and then, not a big deal.
User avatar
By schufti
#48810 @TO:
if your ESP was only ~4 min wrong for the year, you were lucky. My esp-01 was about 4min wrong per day!
I also tried to correct it in software but had to realize that the diffrence was much depending on ambient temperature. And this simple method gets very complex if your battery powered IoT gadget uses deepsleep.

So yes, one could save on the rtc but only under very specific circumstances...
User avatar
By torntrousers
#48853
eriksl wrote:
chaeplin wrote:With Timlib by PaulStoffregen, sync is done every 5 min and can be adjusted.
https://github.com/PaulStoffregen/Time/ ... 66WiFi.ino
https://github.com/PaulStoffregen/Time/ ... #L312-L321

Not necessary. The SDK code contains an NTP client. It's just that you need to retrigger it every now and then, not a big deal.


Any doc somewhere on these SDK time APIs? Or pointers to or examples of using them?

TIA