Current Lua downloadable firmware will be posted here

User avatar
By mosayeb21
#34754 Hi
I'm working on a project that its goal is to send data from the module to an access point continuously, in other words, the connection shouldn't be disconnected. By the way, my device has to work with battery for a long time.
In LUA firmware by default MODEM SLEEP is active. I decided to use LIGHT SLEEP to lower the power consumption less than 1mA but when I used wifi.sleeptype(wifi.LIGHT_SLEEP) instruction I didn't see any changes in power consumption in comparison with MODEM SLEEP mode. The average power consumption was 17mA which is equal to MODEM SLEEP mode. Hence, CPU should have not worked in this mode but I still received data over USART port.
It seems that LIGHT SLEEP doesn't work well.
Would you give me a suggestion,please? :|
Thanks.
User avatar
By alf
#34958 Hi, i also have the same question, have you found a solution?
I have an ESP-01 which i have flashed with nodemcu_integer_0.9.6-dev_20150704.bin
Both wifi.sleeptype(wifi.LIGHT_SLEEP) and wifi.sleeptype(wifi.MODEM_SLEEP) use the same power (approx 17mA)
User avatar
By jankster
#44854 Also I have a problem with the light sleep mode in the firmware NodeMCU. In general, the document "Sleep Mode Function Description" is written on the wake from sleep mode light by the external GPIO. Configure a trigger level. It is strange that the documentation NodeMCU not find similar information. Does anyone know anything more about this?

"Sleep Mode Function Description":
http://espressif.com/sites/default/file ... n_v1.0.pdf

Documentation NodeMCU:
http://nodemcu.readthedocs.org/en/dev/
User avatar
By TerryE
#45007 We've just added the GPIO hook for light sleep to the latest dev builds.