It will be very useful where one has to send notifications on alerts while one is using paid data service while it keeps polling the net (kaching teller box every second) even though the alert event has not happened. It is a great idea to get esp32 to snorrrrrrr while the mice are at play.
Hi, is there any way to use the deep sleep and wake up functions within the void loop? I've known about deep sleep and wakeup but it's no use for most of my sketches that use void loop to perform various tasks. Thanks.
Yes - I don't think there is any reason you can't do that. Just keep in mind, when the sleep function is called, the loop will stop, and when you're program starts again, it will be from the top of setup.
@@programmingelectronics Thank you for your reply. So putting the unit into deep sleep is not hard at practically any part of the sketch, but it seems that waking it up by input seems impossible except for a hard reset. Specifically, I was trying to use a touch sensor to accomplish my objective without any success. If you can shed any light on this, I would be grateful.
Your videos are super helpful but I just have one problem. So I have a project that uses esp-now to communicate. One acts as the transmitter and is basically just a button that when it is pressed, it sends a message to remotely turn on some peripherals connected to the receiver. My question is, is there a way to use ext0 but instead of a button that is connected to the receiver, the transmitter will send a value to tell the receiver whether to wake up or sleep?
Is there a way to use a long press on the push button to put the esp32 to sleep and vice versa? Let’s say… keep the push button pressed for a second to wake up the esp32. Thanks
Thanks! So, if you lose all of your variables and such, then deep sleep isn't equivalent to putting your computer to sleep, it's more like a reset switch, correct?