-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wake from DeepSleep with button? #9
Comments
Hi @svenove! Unfortunately no, the ESP8266 does not support GPIO interrupts to wake from deepsleep. The only way to wake the ESP8266 is to perform a power cycle (e.g. slide the power switch up and down) or by pulling the reset pin low. |
@sqfmi That’s what I thought, hmm... |
Would be great if you could break out the reset pin or have pads that a momentary switch could be soldered on to. In the meantime you could add your own push switch to the reset pin with a bit of careful soldering. |
I guess calling wifi.stop() would reduce power consumption? At least if not reconnecting too often (as reconnect probably uses a bit more than keeping connected?). So instead of deep sleep, I could disconnect from WiFi instead? Any other tips for reducing power consumption? :) |
Instead of deep sleep, you could also try "light sleep" mode which still allows you to wake on interrupt, and consumes ~1mA (according to documentation. Check out this thread for some code snippets and details: esp8266/Arduino#1381 |
Is there any way to wake Badgy up by using the switch, when using ESP.deepSleep()?
Like if I want the HourlyQuote-example to also update when I press the button. :)
The text was updated successfully, but these errors were encountered: