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
9 Replies
Solution
Test HiveMQ. It is truely scalable
I agree with @Kelly Watt , have worked with ~100 IoT devices. with HiveMQ. Also explore the other QoS settings .
We are running over 250,000 real-time endpoints currently with HiveMQ and no issues.
They have some nice connectors, solid support, and their technical team is a pleasure to work with.
Hi Daniel - Curious to hear if you were able to give HiveMQ a chance. I am part of the CTO team and I would love to get any thoughts/feedback. Thanks
@Daniel kalu @Ash13 can you share a bit about your HiveMQ experience? Curious to know.
While exploring about MQTT broker, few time back I had a look upon this. It's good to use, has both free and paid versions, good community support too and supports encryption and more layers of security compared to others like mosquito broker, we finally went ahead with mosquito broker due to open source nature of it. But, hiveMQ us definitely a good choice
Hey @gauravsmn we’re looking to do some content around MQTT in the near future and wondering if you or any of your team members might be interested in discussing?
Let me know?
Thx ash
Sure - let’s chat