As far as I understand, if you subscribed
to a topic
with a specific QoS
, the subscriber will see only the messages under that topic
provided by the MQTT
broker with the QoS
level equal or lower to that QoS
specified at publishing the topic.
In other words,the client who will subscribe, for an exampe, to thetopic = news
and with QoS = 1
, then he will be able to see any published
messages under the topic = news
withQoS = 1 OR 0
I subscribed
to a topic = news
with QoS = 0
, this topic
was published with QoS = 2
, when i connected to the broker
, i received te published message but with its QoS = 0
, and the second time, I published the same topic but with QoS = 1
, and when I subscribed to it with QoS = 0
, I received the message but with QoS = 0
.
So, since whatever the QoS
level is I receive the message but, with its QoS
"downgraded", so what?what is the risk?
Can any anyone explain?!!
When you make a subscription you are saying to the broker "the maximum QoS that I wish to receive messages at is X". This means that if a message comes in on the topic you are subscribed to at a higher QoS, it will be downgraded just for you. Other clients are not affected. Hopefully the table below clears this up for you.