What's the granted QoS for SUBACK if subscribing to a topic that is NOT permitted (MQTT v3.1 spec) ?

43 views
Skip to first unread message

张斌

unread,
Apr 3, 2014, 2:43:07 AM4/3/14
to mq...@googlegroups.com
hi,

What's the granted QoS for SUBACK if subscribing to a topic that is NOT permitted by a MQTT broker (MQTT v3.1 spec) ?

e.g. 

Subscribe to topic1, but it's NOT permitted by the broker, what's the granted QoS should be returned in this case?

Thanks,
Bin

Paul Fremantle

unread,
Apr 3, 2014, 11:33:07 AM4/3/14
to mq...@googlegroups.com
MQTT 3.1.1 makes this clear:

0x80 - Failure

Paul


--
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 http://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.



--
Paul Fremantle
Part-time PhD student - School of Computing
twitter: pzfreo / skype: paulfremantle / blog: http://pzf.fremantle.org
CTO and Co-Founder, WSO2
OASIS WS-RX TC Co-chair, Apache Member
07740 199 729
Message has been deleted

张斌

unread,
Apr 3, 2014, 12:51:21 PM4/3/14
to mq...@googlegroups.com
 Thanks Paul.

 I'm do aware v3.1.1 is clear.  but backward compatibility is needed.

 But for v3.1 what's the granted QoS in this case ? 

Nicholas O'Leary

unread,
Apr 3, 2014, 12:52:24 PM4/3/14
to mq...@googlegroups.com

In 3.1 you need to return a valid QoS value (0,1 or 2). There is not a specific value required in this scenario.

Nick

On 3 Apr 2014 17:49, "张斌" <gem...@gmail.com> wrote:
 Thanks Paul.

 I do aware v3.1.1 is clear.  

 But for v3.1 what should we return in this case, since backward compatibility is needed ?

张斌

unread,
Apr 4, 2014, 4:52:23 AM4/4/14
to mq...@googlegroups.com
 Thanks Nick.
Reply all
Reply to author
Forward
0 new messages