Hi Tim,

I think MQTT messages has RETAINED Flag will be sent to the subscribing
clients which not yet received the message.

But ActiveMQ 5.10, 5.11: the broker always send the message to the client
even the message already delivered to this client before.

Thank you, Tim, for your time following my problem.


Tim Bain wrote
> If I understand correctly, what you're saying is that the messages that
> were being redelivered each time were doing so because they'd been sent
> with the RETAIN flag
> <http://www.hivemq.com/mqtt-essentials-part-8-retained-messages/>
> set,
> which (according to that page) means that they are supposed to be
> delivered
> to a subscriber when it subscribes.  Based on that page, only the last
> retained message should be delivered when the subscriber subscribes; was
> that the behavior you were seeing, or were you getting more than one
> message per subscriber each time?
> 
> I don't see anything in that description that says that a subscriber
> should
> receive the message at any time other than when it *subscribes*, though
> maybe the correct implementation is to send the latest message on each
> reconnect and the page is just misleading.  Do you have further
> information
> about the proper behavior of MQTT on that point?
> 
> Tim





--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Active-MQ-5-11-1-MQTT-Message-is-automatically-sent-to-subscriber-when-it-is-connected-tp4697874p4698087.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to