|
34.
|
|
|
0: The broker/client will deliver the message once, with no confirmation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
mqtt.7.xml:114(listitem)
|
|
35.
|
|
|
1: The broker/client will deliver the message at least once, with confirmation required.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
mqtt.7.xml:115(listitem)
|
|
36.
|
|
|
2: The broker/client will deliver the message exactly once by using a four step handshake.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
mqtt.7.xml:116(listitem)
|
|
37.
|
|
|
Retained Messages
|
|
|
|
(no translation yet)
|
|
|
|
Located in
mqtt.7.xml:121(title)
|
|
38.
|
|
|
All messages may be set to be retained. This means that the broker will keep the message even after sending it to all current subscribers. If a new subscription is made that matches the topic of the retained message, then the message will be sent to the client. This is useful as a "last known good" mechanism. If a topic is only updated infrequently, then without a retained message, a newly subscribed client may have to wait a long time to receive an update. With a retained message, the client will receive an instant update.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
mqtt.7.xml:122(para)
|
|
39.
|
|
|
Clean session / Durable connections
|
|
|
|
(no translation yet)
|
|
|
|
Located in
mqtt.7.xml:133(title)
|
|
40.
|
|
|
On connection, a client sets the "clean session" flag, which is sometimes also known as the "clean start" flag. If clean session is set to false, then the connection is treated as durable. This means that when the client disconnects, any subscriptions it has will remain and any subsequent QoS 1 or 2 messages will be stored until it connects again in the future. If clean session is true, then all subscriptions will be removed for the client when it disconnects.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
mqtt.7.xml:134(para)
|
|
41.
|
|
|
Wills
|
|
|
|
(no translation yet)
|
|
|
|
Located in
mqtt.7.xml:144(title)
|
|
42.
|
|
|
When a client connects to a broker, it may inform the broker that it has a will. This is a message that it wishes the broker to send when the client disconnects unexpectedly. The will message has a topic, QoS and retain status just the same as any other message.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
mqtt.7.xml:145(para)
|
|
43.
|
|
|
See Also
|
|
|
|
Voir aussi
|
|
Translated and reviewed by
Jean-Marc
|
|
|
|
Located in
mqtt.7.xml:152(title)
|