Conditions for sleep mode

rupak426
Posts: 23
Joined: Fri Apr 15, 2016 2:16 am

Conditions for sleep mode

Postby rupak426 » Mon Apr 18, 2016 2:25 pm

Hi Experts,

I am reading the docs related to sleep mode for ESP-8266 and have a query:

1. My esp-8266 is running in softap. I want to sleep my AP and disconnect all the stations connected to it.Which sleep (modem sleep/light sleep/deep sleep) should be effective in my case.

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

ESP_Faye
Posts: 1641
Joined: Mon Oct 27, 2014 11:08 am

Re: Conditions for sleep mode

Postby ESP_Faye » Mon Apr 18, 2016 5:48 pm

Hi,

Sorry that sleep mode is only available in station only mode, ESP8266 can not enter sleep in softAP mode.

Can you change it to be station mode first, then let it enter sleep mode ?

rupak426
Posts: 23
Joined: Fri Apr 15, 2016 2:16 am

Re: Conditions for sleep mode

Postby rupak426 » Mon Apr 18, 2016 9:38 pm

Thanks for the quick response!!

But if we call "WiFi.disconnect()" or "WiFi.mode(WIFI_OFF)" , shouldn't it switch off the WiFi, irrespective of being in station mode or softAP mode.

thanks,
Rupak

Who is online

Users browsing this forum: Google [Bot], Jefferysof, RandyBoike and 3 guests