Closed amit1rrr closed 7 years ago
Closing it.
This was happening because I had another instance of mosquitto with same client ID trying to connect to same IoT endpoint. As per mqtt protocol, broker drops existing connection when it receives another connection with same clientID. So these instances kept disconnecting each other.
Resolution was to change the clientID.
I have a mosquitto instance running on an ec2 host. We have bridged this to AWS IoT. Everything works fine except that the bridge looses connection to IoT endpoint every now and then. Our restart_timeout setting is at 1 second. But all the messages in that 1-2 second period of re-connection are lost. My ec2 instance and IoT endpoint are in the same region as well.
I am not sure if this is a bug in the mosquitto bridging connection or AWS IoT dropping the connection. But would want to know what's happening.
My bridge config is as follow: