-->
Page 2 of 2

Re: differentiate from deep sleep reset and button click res

PostPosted: Mon Mar 08, 2021 8:47 am
by astevani
danilomna wrote:Hi friends,

I´m trying to design a circuit where device wake time to time from deep sleep mode but also can be wake up by a button on reset pin.

problems is doesn´t matter is I wake from deepsleep timer or button the
ESP.getResetReason() is always the same:
REASON_DEEP_SLEEP_AWAKE
due to this I can not differentiate the reset conditions.
Any clue what is wrong?

Any help will be very appreciated.

cheers



[img]https://user-images.githubusercontent.com/10696636/110329009-5a752b80-801c-11eb-8544-397b0f6ed2d9.png/img]

Re: differentiate from deep sleep reset and button click res

PostPosted: Tue Mar 09, 2021 8:59 am
by astevani
This schema works

Image

:D