Page 1 of 1

How can I keep the date / time?

Posted: Wed Aug 28, 2024 5:24 am
by mohitupadhyay
Re-Question:

How can I set the date / time?

How can I ensure that the time I set on my ESP32 is preserved across various conditions, such as during deep sleep, when Wi-Fi is off, after a reset, or even when the device is powered off? I'm looking for a way to store and maintain accurate time in all these scenarios.

Re: How can I set the date / time?

Posted: Wed Aug 28, 2024 8:35 am
by ESP_Sprite
I've split off your question as you posted it in a 2-year-old unrelated topic.
mohitupadhyay wrote:
Wed Aug 28, 2024 5:24 am
Re-Question:

How can I set the date / time?

How can I ensure that the time I set on my ESP32 is preserved across various conditions, such as during deep sleep, when Wi-Fi is off, after a reset, or even when the device is powered off? I'm looking for a way to store and maintain accurate time in all these scenarios.
Depends on your use case: what precision do you need, do you have access to WiFi at least on the first reset, is a battery acceptable? It sounds like an external RTC would be the most useful for the case you describe, though.