OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

mqtt-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [mqtt-comment] Inconsistent reason code between SUBACK and UNSUBACK


Hi,

If the broker doesn't support wildcards or shared subscriptions, the subscription would not have been successfully
created in the first place.

If the client tries to perform an unsubscribe for a wildcard/shared subscription that had previously failed to be
created, I think the appropriate return code would be 17 (0x11) No Subscription existed.

Jon

Jon Levell
Project Lead for Eclipse Amlen
Architect for Watson IoT Platform Connect




From:        "Takatoshi Kondo" <redboltz@gmail.com>
To:        mqtt-comment@lists.oasis-open.org
Date:        15/07/2021 05:40
Subject:        [EXTERNAL] [mqtt-comment] Inconsistent reason code between SUBACK and UNSUBACK
Sent by:        <mqtt-comment@lists.oasis-open.org>




Hi,

According to

3.9.3 SUBACK Payload
Table 3‑8 - Subscribe Reason Codes
https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901178

SUBACK reason code has the following values:

158 Shared Subscriptions not supported
161 Subscription Identifiers not supported
162 Wildcard Subscriptions not supported

On the contrary, UNSUBACK doesn't have them.

3.11.3 UNSUBACK Payload
Table 3‑9 - Unsubscribe Reason Codes
https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901194

It is reasonable that UNSUBACK doesn't have "Subscription Identifiers
not supported" because UNSUBSCRIBE cannot have Subscription Identifier
property.

However, UNSUBSCRIBE could have $shhare/sharename, and wildcards. So
UNSUBACK should have the following reason code:

158 Shared Subscriptions not supported
162 Wildcard Subscriptions not supported

Any ideas?

----
Thanks,
Takatoshi

--
This publicly archived list offers a means to provide input to the
OASIS Message Queuing Telemetry Transport (MQTT) TC.

In order to verify user consent to the Feedback License terms and
to minimize spam in the list archive, subscription is required
before posting.

Subscribe: mqtt-comment-subscribe@lists.oasis-open.org
Unsubscribe: mqtt-comment-unsubscribe@lists.oasis-open.org
List help: mqtt-comment-help@lists.oasis-open.org
List archive:
http://lists.oasis-open.org/archives/mqtt-comment/
Feedback License:
http://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines:
http://www.oasis-open.org/maillists/guidelines.php
Committee:
http://www.oasis-open.org/committees/mqtt
Join OASIS:
http://www.oasis-open.org/join/




Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]