Distinguishing wake-up reset from button pressed reset
Posted: Mon Jun 15, 2015 2:59 pm
I want to put an ESP8266 into deep sleep, waking every, say, 10 minutes to make and report a measurement. I'd also like a means of forcing the ESP8266 to wake up through a button press. If I connect GPIO16 to nRST to allow deep sleep wake-up to operate is there any way to distinguish this event from a button press on the nRST pin? I don't feel that it is possible but thought I should ask.
In general how can a deep sleep device be forced to wake to do something other than it would normally do on wake-up? I have seen mention somewhere of generating a reset event by capacitive coupling - perhaps this could be combined by a switch on a GPIO to allow the state of the GPIO to be checked after reset. Has anyone tried this successfully?
In general how can a deep sleep device be forced to wake to do something other than it would normally do on wake-up? I have seen mention somewhere of generating a reset event by capacitive coupling - perhaps this could be combined by a switch on a GPIO to allow the state of the GPIO to be checked after reset. Has anyone tried this successfully?