Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
After v1.5.4: bridge doesn't queue up messages when connection not active #1174
We have a mobile device, using a cell modem for network connectivity. We are currently using mosquitto 1.5.1 to act a bridge to the remote broker. The idea is that local MQTT client apps can connect exclusively to the local bridge, and don't worry about mobile connectivity. We'd like to keep our version of mosquitto up to date, but have run into a problem. Here's what we see with regards to the bridge handing messages when connectivity is down.
With 1.5.1 this works fine. The sequence I see is this:
This above seems true up to version 1.5.4.
From 1.5.5 on, this is what I see:
So it appears that the message is now being discarded because of the timing of the subscription relative to the connection the remote broker. It seems like the bridge shouldn't be discarding any configured outgoing message topics regardless of current connectivity.