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
Solution:
Test HiveMQ. It is truely scalable
Jump to solution
9 Replies
Solution
Kelly Watt
Kelly Watt3mo ago
Test HiveMQ. It is truely scalable
Ash13
Ash133mo ago
I agree with @Kelly Watt , have worked with ~100 IoT devices. with HiveMQ. Also explore the other QoS settings .
Kelly Watt
Kelly Watt3mo ago
We are running over 250,000 real-time endpoints currently with HiveMQ and no issues.
Kelly Watt
Kelly Watt3mo ago
They have some nice connectors, solid support, and their technical team is a pleasure to work with.
gauravsmn
gauravsmn3mo ago
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
techielew
techielew2mo ago
@Daniel kalu @Ash13 can you share a bit about your HiveMQ experience? Curious to know.
Ash13
Ash132mo ago
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
techielew
techielew2mo ago
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
gauravsmn
gauravsmn2mo ago
Sure - let’s chat
Want results from more Discord servers?
Add your server