Post topics, source code that relate to the Arduino Platform
User avatar
By µrt
#75992 Hi,

Is there any library that integrates NTP and ESP8266 internal RTC? What I mean is that instead of sending NTP / UDP requests so often, we sync the NTP time to native RTC and sync the RTC with NTP every hour. This will keep the time accuracy pretty tight and keep the power needed for wifi pretty low.

Although I have read a lot of posts on internal RTC but not have been able to understand it.

Thanks.
User avatar
By schufti
#75994 a) this example is .... minimalstic and misleading as it does not take advantage of the automated dst rules possible with new clib; fixed dst offset w/o rules is nonsense.
b) there is no (hw) rtc in esp8266
User avatar
By Pablo2048
#75995 Ugh, you are right Schufti - i'm using this:
settimeofday_cb(ntp_time_set);
configTime(0, 0, cfg->server);
setenv("TZ", (const char *)cfg->zone, 1);
tzset();
and Ii tought that it come from this example. Sorry for missleading...