It will get in light sleep auto when run the idle task or not ?
If the chip can get in sight sleep ,what is the current of the esp8266?
http://www.espressif.com/sites/default/ ... ons_en.pdf
It will clarify on which sleep mode is best for your project.
- Posts: 1
- Joined: Mon Jan 14, 2019 4:35 pm
- Location: https://www.achieveessays.com/essay-writer.html
gladysjenkins2019 wrote:So do I need to add code lines in my setup to make sure the ESP is in client mode and light sleeping is enabled?
Gladys, yes, Automatic Light Sleep is not enabled by default, only Automatic Modem Sleep, so you need to add the wifi_set_sleep_type(LIGHT_SLEEP_T) SDK call to enable Light Sleep. I see power drop to ~ 4mA during Light Sleep between beacons. It will go lower than 4mA, but you have to disable all timers (which loses the WiFi connection).
Depending on the DTIM listen interval Light Sleep runs at, you may miss packets in Station mode. If you can't afford to lose data, then you will want to use the default Modem Sleep instead (~15mA between TIM beacons, but no lost data). You don't have to do anything in your code to get Modem Sleep, it's running soon after you establish a connection. If you have frequent 'idle' calls in your program you'll see the power drop. For the Arduino IDE, 'idle' = delay(). Without 'idle', the modem never sleeps and substrate current is ~70mA.
gladysjenkins2019 wrote:So do I need to add code lines in my setup to make sure the ESP is in client mode and light sleeping is enabled
This PDF will clear you all questions regarding the Wifi Light sleep...
https://www.espressif.com/sites/default ... ons_en.pdf
Who is online
Users browsing this forum: No registered users and 25 guests
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!