Programmatically powering on and off the Wifi radio?
Posted: Sat Apr 11, 2015 1:47 pm
From a bit of googling i read that calling system_deep_sleep_set_option(4) will:
"disable RF after deep sleep wake up, just like modem sleep, there will be the smallest current."
http://www.mikrocontroller.net/attachme ... v0.9.5.pdf
I gave that i try and found that on wake up an ESP-12 then uses about 12.6 milliamps, compared to the about 74 milliamps with system_deep_sleep_set_option(0).
But of course Wifi doesn't work now as its powered off. Is there any way of programmatically powering it back on without just doing another deep sleep using option 0?
"disable RF after deep sleep wake up, just like modem sleep, there will be the smallest current."
http://www.mikrocontroller.net/attachme ... v0.9.5.pdf
I gave that i try and found that on wake up an ESP-12 then uses about 12.6 milliamps, compared to the about 74 milliamps with system_deep_sleep_set_option(0).
But of course Wifi doesn't work now as its powered off. Is there any way of programmatically powering it back on without just doing another deep sleep using option 0?