ESP32-C3 deep sleep and gettimeofday

HelgardM
Posts: 2
Joined: Wed Jun 21, 2023 9:34 am

ESP32-C3 deep sleep and gettimeofday

Postby HelgardM » 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.

ESP_Sprite
Posts: 9739
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-C3 deep sleep and gettimeofday

Postby ESP_Sprite » Fri Jun 30, 2023 1:07 am

It shouldn't do that, indeed. What ESP-IDF version do you use and can you share your project?

Who is online

Users browsing this forum: Baidu [Spider] and 57 guests