Daniel kalu
DIIDevHeads IoT Integration Server
•Created by Daniel kalu on 7/24/2024 in #pcb-and-analog
Optimizing Power Consumption and Ensuring MQTT Reliability with ESP32 and FreeRTOS
In an effort to optimize power consumption in an ESP32-based loT project using FreeRTOS and MQTT, I face challenges with high power usage and unreliable MQTT reconnections after deep sleep.
Despite using deep sleep modes and optimizing task scheduling, power consumption remains at 10mA, above my target of 5mA. The ESP32 stays in deep sleep for 10 minutes before waking up.
Upon waking, MQTT reconnections fail intermittently with errors such as MQTT:
Connection Timeout, Failed to Re-establish Network
Connection, and Server Response Delayed, causing missed data transmissions and requiring multiple retries.
What advanced techniques or configurations can further reduce power consumption while ensuring reliable MQTT communication upon wake-up?
4 replies