HarringayMakerSpace / ESP-Now

ESP-Now Examples
301 stars 48 forks source link

Q: ESPNow turnoff #15

Closed bjeram closed 5 years ago

bjeram commented 5 years ago

Hi, I am planning to use ESPNow with a (wind) sensor that I have to read every couple of second, so I do not want to (=it does not bring much) go into deep sleep, so I wonder if there is possible to turn off the ESPNow. I was thinking something like:

esp_now_deinit(); WiFi.disconnect(); WiFi.mode(WIFI_OFF); WiFi.forceSleepBegin();

//read sensor, and if needed turn on/initialize ESPNow and send the data

BTW: do you know how much power does it consume ESPNow (not sending data/sending data)?

TIA

bjeram commented 5 years ago

'I've checked myself. When ESP Now is on ESP8266 consumes around 60mA, when it is off (executed above commands) it goes down to 15mA.