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.