ESP32-C3 deep sleep and gettimeofday
Posted: Thu Jun 29, 2023 3:41 pm
Hello all,
I'm trying to maintain a valid time stamp during deep sleep with the ESP32-C3. With settime of day I set the unix time stamp and a subsequent gettimeofday returns correctly.
After a deep_sleep, the gettimeofday function returns a value of 0. Why is this happening?
I understood that the gettimeofday function call will always return the set time, regardless of deep sleep.
I'm trying to maintain a valid time stamp during deep sleep with the ESP32-C3. With settime of day I set the unix time stamp and a subsequent gettimeofday returns correctly.
After a deep_sleep, the gettimeofday function returns a value of 0. Why is this happening?
I understood that the gettimeofday function call will always return the set time, regardless of deep sleep.