dylif / humid-esp32-pio

ThingsBoard-integrated ESP32-based temperature and humidity sensor (PlatformIO version)
MIT License
0 stars 0 forks source link

Automatic light-sleep feature and FreeRTOS integration #6

Open dylif opened 1 month ago

dylif commented 1 month ago

Refer to this link for how to enable automatic light sleep: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/power_management.html

Automatic Light-sleep is based on FreeRTOS Tickless Idle functionality. If automatic Light-sleep is requested while the option CONFIG_FREERTOS_USE_TICKLESS_IDLE is not enabled in menuconfig, esp_pm_configure() will return the error ESP_ERR_NOT_SUPPORTED.

Also here: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/sleep_modes.html

If Wi-Fi/Bluetooth connections need to be maintained, enable Wi-Fi/Bluetooth Modem-sleep mode and automatic Light-sleep feature (see Power Management APIs). This allows the system to wake up from sleep automatically when required by the Wi-Fi/Bluetooth driver, thereby maintaining the connection.

dylif commented 1 month ago

This will likely wait until 1.0.0