-
I am experiencing issues with lightsleep. Specifically, MQTT publish errors. This might be related to #11877 by @davefes . I installed esp32-ota-20230426-v1.20.0.bin onto an ESP32 dev board (ESP-WROOM-32). Haven't tested with 32D and 32E modules. I installed umqtt.simple using This is a script to reproduce the issue, you can name it
The issue can be seen like this:
Notes:
The error does not happen if:
Any ideas? I'm not really familiar with Micropython, but I'm pretty comfortable with Python. So I will be able to test out any code/patch on my hardware. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
For me doing a |
Beta Was this translation helpful? Give feedback.
-
The ESP-IDF docs, only one google search away, clearly state that "In Deep-sleep and Light-sleep modes, the wireless peripherals are powered down. Before entering Deep-sleep or Light-sleep modes, the application must disable Wi-Fi and Bluetooth ... ". I don't think it's possible to maintain a WIFI connection during any of the ESP32 sleep modes, but you can try the WIFI power save options available with recent nightly micropython builds. |
Beta Was this translation helpful? Give feedback.
The ESP-IDF docs, only one google search away, clearly state that "In Deep-sleep and Light-sleep modes, the wireless peripherals are powered down. Before entering Deep-sleep or Light-sleep modes, the application must disable Wi-Fi and Bluetooth ... ".
I don't think it's possible to maintain a WIFI connection during any of the ESP32 sleep modes, but you can try the WIFI power save options available with recent nightly micropython builds.