-->
Page 2 of 4

Re: I tested esp8622 time keeping without RTC

PostPosted: Wed Jun 08, 2016 1:53 pm
by eriksl
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.

Re: I tested esp8622 time keeping without RTC

PostPosted: Wed Jun 08, 2016 4:01 pm
by schufti
@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...

Re: I tested esp8622 time keeping without RTC

PostPosted: Thu Jun 09, 2016 2:43 am
by torntrousers
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

Re: I tested esp8622 time keeping without RTC

PostPosted: Thu Jun 09, 2016 10:24 am
by eriksl
It's explained in the SDK documentation. If you don't have read that, you're missing out a lot.