Chat freely about anything...

User avatar
By Rupak
#45671 Hi Experts,

My esp-8266 is running in softap + station mode. I am trying sleep mode for soft AP and disconnect all the stations/clients connected to this AP.

1. Which sleep (modem sleep/light sleep/deep sleep) should be effective in my case. (as doc is not clear about this). I tried modem sleep but that doesn't seems to work with softAP mode.

2. what is the difference between "WiFi.disconnect()" and "WiFi.mode(WIFI_OFF)". Are these two work the same way and switch off the Wifi.

thanks,
Rupak
User avatar
By IOT@urremote.com
#46153 My recollection is that you need to switch to station mode for anything except deep sleep to reduce power consumption.

WiFi.disconnect() will disconnect you from an access point but not turn off the WiFi.