ESP8266 Developer Zone The Official ESP8266 Forum 2021-07-20T14:14:31+08:00 https://bbs.espressif.com:443/feed.php?f=62&t=5757 2021-07-20T14:14:31+08:00 2021-07-20T14:14:31+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5757&p=100074#p100074 <![CDATA[Re: How to use the wifi light sleep?]]>

Statistics: Posted by ab_d — Tue Jul 20, 2021 2:14 pm


]]>
2021-07-20T10:38:24+08:00 2021-07-20T10:38:24+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5757&p=100072#p100072 <![CDATA[Re: How to use the wifi light sleep?]]> https://github.com/espressif/ESP8266_RT ... power_save

Statistics: Posted by Her Mary — Tue Jul 20, 2021 10:38 am


]]>
2021-07-19T15:40:18+08:00 2021-07-19T15:40:18+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5757&p=100069#p100069 <![CDATA[Re: How to use the wifi light sleep?]]> Ive been trying to use Light Sleep mode for my project for which im using ESP8266 with RTOS SDK. Ive tried the API's given for sleep mode functions as recommended in esp8266 RTOS SDK Programming Guide's API Reference, from esp_sleep.h file, but couldn't find the declaration of those functions in its respective .c file. Also, I did notice a file named "esp_fsleep.c", which contains all the functions that I need for sleep mode to work, but all of those functions are defined as "ESP_LOGE(TAG, "We have removed this api, please do not call");"

So anyone who has faced this issue, please help me with this or let me know if ive missed something that's needed to be done to make it work! Any small working example would be a great help too!

best,
ab_d

Statistics: Posted by ab_d — Mon Jul 19, 2021 3:40 pm


]]>
2021-06-12T12:46:13+08:00 2021-06-12T12:46:13+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5757&p=99990#p99990 <![CDATA[Re: How to use the wifi light sleep?]]> Statistics: Posted by talleychan — Sat Jun 12, 2021 12:46 pm


]]>
2020-12-10T09:49:34+08:00 2020-12-10T09:49:34+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5757&p=95536#p95536 <![CDATA[Re: How to use the wifi light sleep?]]> Statistics: Posted by peterleonard — Thu Dec 10, 2020 9:49 am


]]>
2020-07-09T13:28:26+08:00 2020-07-09T13:28:26+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5757&p=81063#p81063 <![CDATA[Re: How to use the wifi light sleep?]]> Statistics: Posted by hazelmark760 — Thu Jul 09, 2020 1:28 pm


]]>
2020-03-28T20:53:43+08:00 2020-03-28T20:53:43+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5757&p=74924#p74924 <![CDATA[Re: How to use the wifi light sleep?]]>
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
ResumeWritingServicesUS


This PDF will clear you all questions regarding the Wifi Light sleep...
https://www.espressif.com/sites/default ... ons_en.pdf

Statistics: Posted by Guest — Sat Mar 28, 2020 8:53 pm


]]>
2020-02-08T22:28:32+08:00 2020-02-08T22:28:32+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5757&p=73258#p73258 <![CDATA[Re: How to use the wifi light sleep?]]>
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.

Statistics: Posted by Guest — Sat Feb 08, 2020 10:28 pm


]]>
2019-01-14T16:45:55+08:00 2019-01-14T16:45:55+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5757&p=36735#p36735 <![CDATA[Re: How to use the wifi light sleep?]]> Statistics: Posted by Guest — Mon Jan 14, 2019 4:45 pm


]]>
2017-07-31T14:17:44+08:00 2017-07-31T14:17:44+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5757&p=14917#p14917 <![CDATA[Re: How to use the wifi light sleep?]]> http://www.espressif.com/sites/default/ ... ons_en.pdf

It will clarify on which sleep mode is best for your project.

Statistics: Posted by Guest — Mon Jul 31, 2017 2:17 pm


]]>
2017-07-27T08:46:28+08:00 2017-07-27T08:46:28+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5757&p=14864#p14864 <![CDATA[How to use the wifi light sleep?]]> 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?

Statistics: Posted by BearPeak — Thu Jul 27, 2017 8:46 am


]]>