Can WIFI be turned off?

Harold L.
Posts: 26
Joined: Thu Dec 18, 2014 3:24 pm

Can WIFI be turned off?

Postby Harold L. » Thu Jul 16, 2015 2:26 am

I found there is a API called "system_phy_set_rfoption" on the document, and I tried it in user_rf_pre_init(), but it seems not working at all!

It seems that the API is related to deep-sleep, but the GPIO16 on our PCB board was connected as other function, which means we can not use deep-sleep.

I'd like to give our customers an option to turn wifi off while other parts including the CPU-core are working, is there any way?


Thank you!

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

Re: Can WIFI be turned off?

Postby ESP_Faye » Thu Jul 16, 2015 2:11 pm

Hi,

Yes,system_phy_set_rfoption is only available when wake up from deep-sleep.

Sorry that we don't have the API you want now. .

But we will think over your request, and let your know if there is any update.

Thanks for your interest in ESP8266 !

Harold L.
Posts: 26
Joined: Thu Dec 18, 2014 3:24 pm

Re: Can WIFI be turned off?

Postby Harold L. » Sat Jul 25, 2015 1:13 pm

I tried another API 'wifi_station_disconnect', but the power consumption didn't go down at all, instead, it was rising!

This is the recording of the total current consumed by our board:
WIFI On: 70mA. Once in a while went up to 100mA
WIFI Not available(AP turned off): 130mA
WIFI Off(wifi_station_disconnect): 130mA

We'd like to save power when WIFI is not available (e.g. we wish users can take our product with them, recording data offline with a small battery)

Wish you can offer some help, it really natters to us, thanks!

Who is online

Users browsing this forum: No registered users and 79 guests