wandeltn / kulturlabor-10-niklas

Kulturlabor Projekt
GNU General Public License v3.0
2 stars 1 forks source link

Upgrade to ESP32 RTC #35

Closed wandeltn closed 1 year ago

wandeltn commented 1 year ago

Is your feature request related to a problem? Please describe. The current usage of millis would cause the esp not to remember the time it went into deepsleep. With this solution it would be able to recover lost time from deepseep

Describe the solution you'd like The timer class should be rewritten to use gettimeofday so that the rtc is used, which keeps running, even in deepsleep

Describe alternatives you've considered NTP time sync and Wifi, but these are not feasable because the Tama is supposed to be completely offline