How to turn on WIFI circurit after deepsleep

timbotttt
Posts: 2
Joined: Thu Apr 28, 2016 3:28 pm

How to turn on WIFI circurit after deepsleep

Postby timbotttt » Fri May 06, 2016 9:24 am

Hello esp. fellows:
As we all know we can set the opt about the behaviors when esp8266 wake up -- such as don't turn on wifi circuit .But the problem is how to turn on wifi circurit in this mode?
I have read some topics they all said it is no API here.In a topic a friend use system_deep_sleep_instant() replace of system_deep_sleep() also made the time system work shortten 96ms before fall into sleep.But I can't make the project with error undefined function.
In my project,I need a very low cost of the power,so I make the module deepsleep 10s everytime when it finish work -- AP scan as a station -- and don't turn on the wifi circurit when wake up.
If anyone give a solution ,it will be very thanks full!

yangtao
Posts: 19
Joined: Tue Feb 02, 2016 3:03 pm

Re: How to turn on WIFI circurit after deepsleep

Postby yangtao » Sun May 08, 2016 10:46 am

I am also searching similar solution, but no luck.

For your case, I think you can call "system_deep_sleep_set_option(1)" and reboot to go to normal mode. You can use RTC memory to store the status / operation-mode.

Who is online

Users browsing this forum: No registered users and 14 guests