© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
DevHeads IoT Integration ServerDIIS
DevHeads IoT Integration Server•2y ago•
3 replies
Daniel kalu

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?
DevHeads IoT Integration Server banner
DevHeads IoT Integration ServerJoin
The DevHeads IoT Integration Server accelerates technology engineering by helping pro devs learn, share and collaborate.
2,984Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Optimizing Power Consumption for STM32-based Wearable Health Monitor?
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
3y ago
How Do I Transition From Power Electronics to Leading an IoT Project With ESP32?
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
14mo ago
Why Does My ESP32-WROVER-B Fail to Power On Intermittently?
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
15mo ago
Anyone Experienced With ESP32 Drones?
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
14mo ago