Closed hydrotekfarm closed 1 year ago
Hi Neel. Question on how deep sleep works on boot. I see that line 107 checks if the reason the ESP32 is booting is for deep sleep, but what about the scenario where deep sleep has already been active and is running, and the ESP32 has to restart (power outage, for example). Will line 107 still recognize that the ESP32 was previously in deep sleep and return to that state, because in this situation we want the ESP32 to return to deep sleep if that's the state it was in before it restarted.
In GitLab by @embeddedcoders on Dec 5, 2020, 11:23
Hi @hydrotekfarm, As the device is reboot due to a power outage, it will not detect that the device woke up due to sleep mode. If we need to put the device in sleep mode due to a power outage restart, we need to store some information on Flash (Non-Volatile) memory.
In GitLab by @AjayKrishna123 on Oct 30, 2020, 20:26