Page 1 of 1

ESP-NOW + WiFi + Deep Sleep - Battery powered

Posted: Thu Jan 28, 2021 2:10 pm
by Davidulo
Hello, I have a problem with my project where I use a station that is plugged in the wall and has ESP-NOW and is connected to WiFi. Then I have a device that sends data over ESP-NOW and then goes to sleep for 5 minutes. It is working well, but there is a problem with execution time. When I wake the ESP32 up, it does WiFi.scanNetworks() which takes 2 seconds to finish and that is too much time. Is there a way of setting everything static? I haven't found any solution to this. I know that when I have only ESP-NOW running I don't have to use WiFi.scanNetworks(), but I need to use WiFi simultaneously.