[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [paho-dev] what happen when I subcribe a topic again?
|
For a matching subscription on a session
with cleansession set to false the retained message will be re-sent to
the subscriber
From the subscribe section of the OASIS
3.1.1 MQTT spec:-
If a Server receives a SUBSCRIBE Packet containing
a Topic Filter that is identical to an existing Subscription’s Topic Filter
then it MUST completely replace that existing Subscription with a new Subscription.
The Topic Filter in the new Subscription will be identical to that in the
previous Subscription, although its maximum QoS value could be different.
Any existing retained messages matching the Topic Filter MUST be re-sent,
but the flow of publications MUST NOT be interrupted
All the best
Dave
From:
"Mango" <867380699@xxxxxx>
To:
"paho-dev"
<paho-dev@xxxxxxxxxxx>
Date:
10/01/2015 16:14
Subject:
[paho-dev] what
happen when I subcribe a topic again?
Sent by:
paho-dev-bounces@xxxxxxxxxxx
I set the mqtt option "cleansession" to false.
then what will happen when I sucribe the topic already
sucribed.
will I receive the retained message?
or nothing happen?_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU