Daniel kalu
DIIDevHeads IoT Integration Server
•Created by Daniel kalu on 7/23/2024 in #edge-networking
I'm looking to enhance MQTT reliability for my ESP32 in IoT applications
Hi, I'm looking to enhance MQTT reliability for my ESP32 in IoT applications. My ESP32 struggles with maintaining stable connections in fluctuating network conditions, often failing to reconnect automatically after dropouts, leading to data loss. Additionally, the QoS settings sometimes don't ensure message delivery. I'm using a Mosquitto broker with the following MQTT settings: a keep-alive interval of 60 seconds, a retry count of 3, and QoS levels set to 1 for all sensor data. The error messages I encounter often indicate connection timeouts and message delivery failures. Are there specific keep-alive settings, retry mechanisms, or QoS levels that can help? Any advice on handling automatic reconnections and minimizing data loss would be greatly appreciated.
@Middleware & OS
12 replies