esp32 wake from sleep via interrupt then return to sleep
esp32 wake from sleep via interrupt then return to sleep
I would like to put esp32 into light sleep mode then be able to wakeup via ext interrupt. Next, I want to resume the sleep cycle. My attempts restart sleep cycle after interrupt is serviced. Problem is that a new sleep cycle is started after each interrupt.
Re: esp32 wake from sleep via interrupt then return to sleep
Thats the way it works, you will have to save you state and other required data, before going to sleep and the reload data when it wakes up.
Re: esp32 wake from sleep via interrupt then return to sleep
Yes I agree with that.
Do you think is a good idea to use the Preferences class to save state?
Do you think is a good idea to use the Preferences class to save state?
epdiy collaborator | http://fasani.de Fan of Espressif MCUs and electronic design
Re: esp32 wake from sleep via interrupt then return to sleep
The Preferences class is very easy to use and control, so in most cases I would use it, but it migth depend on what else you code does and require.fasani wrote: ↑Mon Apr 20, 2020 3:01 pmYes I agree with that.
Do you think is a good idea to use the Preferences class to save state?
Re: esp32 wake from sleep via interrupt then return to sleep
Thank you both for your replies. I am new to this and will have to learn about the Preference class. Will do a google search.
Thanks again.
Thanks again.
Who is online
Users browsing this forum: No registered users and 97 guests