Re-enable RF after a deepsleep with option 4

redge76
Posts: 1
Joined: Sun Feb 28, 2016 12:28 pm

Re-enable RF after a deepsleep with option 4

Postby redge76 » Tue Mar 01, 2016 5:14 am

Hi,

I can't find anything on how to re-enable wifi after a system_deep_sleep() with the option deep_sleep_set_option(4).
The current workaround seems to call deep_sleep_set_option(0) and then system_deep_sleep(1).
Adafruit seems to be able to re-enable wifi with the arduino environment.
https://github.com/adafruit/adafruit-io ... rigger.ino
I was not able to reproduce this.
People on the arduino github project are also trying without success (WAKE_RF_DISABLED) :
https://github.com/esp8266/Arduino/issues/644
The example code provided by espressif use the set_option(0) solution:
https://github.com/EspressifSystems/low ... ensor_lp.c


So can someone at Espressif confirm how, if possible, to enable wifi after a deepsleep. I was not even able to do it by power reset. Is calling deep_sleep_set_option(0) the only solution ? Is there really anyway to do this without restart ?

Regards,

Rafaelvbl
Posts: 1
Joined: Sun Dec 04, 2016 4:57 am

Re: Re-enable RF after a deepsleep with option 4

Postby Rafaelvbl » Sun Dec 04, 2016 5:12 am

I have the same doubt. I have not found any information on how to turn on the RF with the ESP8266 running. Can someone help us?

pgoldstein
Posts: 1
Joined: Wed Jul 05, 2017 9:56 pm

Re: Re-enable RF after a deepsleep with option 4

Postby pgoldstein » Wed Jul 05, 2017 10:09 pm

Is there any way to avoid the ESP8266 to sleep in any kind? I am facing this issue. After 30 minutes of inactivity, my ESP12-E goes to sleep without any command and I dont want it. I have to do a ping, inside a crontab, every 15 minutes to avoid it. thanks

Her Mary
Posts: 537
Joined: Mon Oct 27, 2014 11:09 am

Re: Re-enable RF after a deepsleep with option 4

Postby Her Mary » Fri Jul 07, 2017 10:36 am

Maybe you can try wifi_set_sleep_type(NONE_SLEEP_T); to disable sleep mode.

Who is online

Users browsing this forum: No registered users and 64 guests