mosquitto-users team mailing list archive
-
mosquitto-users team
-
Mailing list archive
-
Message #00437
Re: Auto retain messages when a bridge connection drops
My bad I did not pay attention to the parameter for the qos in the topic
mapping.
If anyone who reads this faces the same issue, just use a mapping of the
form:
topic /some/topic/# out 1
Where '1' stands for the qos of the messages between the two brokers.
Sorry for the bother.
Thomas
On 22 January 2014 13:53, Thomas George <tfjgeorge@xxxxxxxxx> wrote:
> Hey mosquitto users,
>
> My setup is that I have two brokers, one (A) redirecting messages to the
> other one (B) with a bridge setup. The problem is, the connection often
> drops because of poor network conditions. When this occurs messages
> published to broker A are not redirected to broker B, even with qos 1.
>
> Option 1) I suspect this is normal behaviour and I should set the retain
> parameter to true for the broker A to actually retain messages and send
> them again when the connection gets back up.
>
> Option 2) But in the other hand, I could expect a bridge setup to act as
> if it were the same broker, that is to say everything that is published on
> broker A gets published on broker B regardless of connection drops. To me
> the 'retain' parameter set to true on broker A would just mean broker B
> also retains the message, and 'retain' set to false would mean broker A
> does not retain the message, still takes care of it being published on
> broker B regardless of any connection drop, and broker B does not retain it.
>
> Any help appreciated.
>
> Thomas
>
>
>
References