SUBACK failure response code

37 views
Skip to first unread message

Paolo Patierno

unread,
Nov 16, 2014, 8:54:34 AM11/16/14
to mq...@googlegroups.com
Hi all,
what are the main reasons for a broker to reply with "failure" in SUBACK packet to a client ?

Thanks,
Paolo

Roger Light

unread,
Nov 16, 2014, 3:27:15 PM11/16/14
to mq...@googlegroups.com
Hi Paolo,

I'd say access denied, or topic not available. For the latter - some
brokers require topics to be preconfigured.

Cheers,

Roger
> --
> 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.

Paolo Patierno

unread,
Nov 16, 2014, 3:42:24 PM11/16/14
to mq...@googlegroups.com
Hi Roger,
with "access denied" do you mean that a broker can avoid that a client (connected with a username/password) could subscribe to some topics ?
Regarding "topic not available" of course it is valid only for brokers that allow access only to preconfigured topics.
However, they are all things not well specified in the standard but are free of implementaion in the broker.

Paolo

Roger Light

unread,
Nov 16, 2014, 4:26:29 PM11/16/14
to mq...@googlegroups.com
Hi Paolo,

> with "access denied" do you mean that a broker can avoid that
> a client (connected with a username/password) could subscribe
> to some topics ?

Yes, exactly.

Regards,

Roger

Jian Zhen

unread,
Nov 17, 2014, 1:48:30 PM11/17/14
to mq...@googlegroups.com
Also if the topic is invalid? So if you subscribe to a topic of "a/b#" then the broker can respond "failure".
Reply all
Reply to author
Forward
0 new messages