Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

MQTT qos1 & qos2

62 views
Skip to first unread message

Siva Nallamalli

unread,
Jul 31, 2018, 8:59:58 AM7/31/18
to MQTT

For publishing MQTT Messages(QoS1 & QoS2) to the brocker, is it neccesary to enable/use persistant option on client?

If no,  does the existing MQTT client will hold the existing messages untill it get PUBACK/PUBREL mesages from brocket.

Siva Nallamalli

unread,
Aug 3, 2018, 12:33:42 AM8/3/18
to MQTT


On Tuesday, July 31, 2018 at 6:29:58 PM UTC+5:30, Siva Nallamalli wrote:

For publishing MQTT Messages(QoS1 & QoS2) to the brocker, is it neccesary to enable/use persistant option on client?
If no,  does the existing MQTT client will implicitly hold the existing messages untill it get PUBACK/PUBREL mesages from brocker. Is there any extra options need to enable with MQTT client?

 
 

saurabh singh

unread,
Aug 7, 2018, 2:37:50 AM8/7/18
to mq...@googlegroups.com

--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.

Sombaran Gupta

unread,
Aug 7, 2018, 2:53:51 AM8/7/18
to mq...@googlegroups.com
Hi Siva,
When we are using QoS-->0 there is no acknowledgment of our messages but when we are using QoS----> 1/2 we get acknowledgement of every messages however the message and acknowledgement flow varies in both QOS---> 1/2, when is comes to broker
for client connection it can request a persistent session which means, when the clean session flag is set to true, the client does not want a persistent session i.e broker does not stores/saves any of the messages in the location (var/lib/mosquitto/mosquitto.db)
whereas When the clean session flag is set to false, the client wants a persistent session i.e broker stores/saves all of the messages in the location (var/lib/mosquitto/mosquitto.db)
There is client persistent session where client expiration period is configured
 persistent_client_expiration 2m
 persistent_client_expiration 14d
 persistent_client_expiration 1y
I hope this  will clear all your doubts

Regards

Reply all
Reply to author
Forward
0 new messages