Hi
I would like to know if it is possible to preserve time when doing deep sleep? Any example?
My goal is to log time when it goes to deep sleep and retrieve the time when it wakes up. So i can calculate the difference in seconds.
I will connect to WIFI only on initial reset and not on other deep sleep wake ups.
Let say that i connect to ntpServer server on initial reset. I get the time.
Than ESP goes to sleep. When it wakes up can i retrieve the time or it is lost? Now i get 0.
If not possible Is there any other way using only ESP not external units?
DeepSleep - Preserve Time
Re: DeepSleep - Preserve Time
Please have a look at protocols/sntp example in ESP-IDF:
https://github.com/espressif/esp-idf/tr ... cols/sntp/
https://github.com/espressif/esp-idf/tr ... cols/sntp/
Re: DeepSleep - Preserve Time
Tnx,
Link helped me and it works now.
Link helped me and it works now.
Who is online
Users browsing this forum: pkf1111 and 90 guests