← Prev in month ← Prev in thread

MQTT Version 5.0 - Public Review - Property Length in UNSUBACK cannot be zero or missing

From
Christoph Krey <>
Date
2017-09-03T11:19:37+00:00
ID
Thread
MQTT Version 5.0 - Public Review - Property Length in UNSUBACK cannot be zero or missing
In MQTT V5, the UNSUBACK Payload will be always at least 1 byte long to contain the reason code(s).

Keeping this in mind the Remaining length will always be at least 4 bytes long and the property length variable byte can never be left out.

Please remove the sentence "If the Remaining Length is less than 3 there is no Properties."

--- 
3.11.2.1 UNSUBACK Properties3.11.2.1.1 Property Length
The length of the Properties in the UNSUBACK packet Variable Header encoded as a Variable Byte Integer. If the Remaining Length is less than 3 there is no Properties.

…

3.11.3 UNSUBACK Payload
The Payload contains a list of Reason Codes. Each Reason Code corresponds to a Topic Filter in the UNSUBSCRIBE packet being acknowledged. The order of Reason Codes in the UNSUBACK packet MUST match the order of Topic Filters in the UNSUBSCRIBE packet [MQTT-3.11.3-1].

Christoph Krey

<> 7582 9188 8D6C E945 15BA  4CD9 900D FB34 2AB0 38D7Breite Strasse 79, 41460 Neuss, Germany+49 1511 874 4526
← Prev in month ← Prev in thread