I have a question about ESP32 RTC clock.
As Espressif documents said "RTC timer: Allows keeping the system time during any resets and sleep mode" in documents
https://docs.espressif.com/projects/esp ... _time.html
Every time device reset (software reset), i readback rtc time, but it's seem rtc time not stored when device soft reset.
Could you please give me your suggestion, how to keep rtc timer when device reboot?
Thanks.
My code to read timer every device software reset.
Code: Select all
struct timeval current_time;
gettimeofday(¤t_time, NULL);
ESP_LOGW(TAG, "seconds : %ld\nmicro seconds : %ld",
current_time.tv_sec, current_time.tv_usec);