Ask Your Question

veracl's profile - activity

2020-07-27 12:18:52 +0000 marked best answer MQTT5 publish packets not dissected correctly unless Connect command packet is captured

MQTT5 packets include properties right before the message. MQTT3 packets do not include properties. See: https://docs.oasis-open.org/mqtt/mqtt...

When capturing MQTT5 traffic, the properties are not dissected properly. E.g., a "property length" byte of zero is displayed as a zero byte at the start of the message, resulting in a "Trailing stray characters" warning:

image description

Only when the Connect command packet is also captured, which includes the version number 5, are the properties displayed correctly:

image description

image description

Is there any way to get Wireshark to display MQTT5 packets correctly even when the Connect command packet is not part of the capture? Is there a setting for "MQTT version"? I did not find anything like that.

2020-07-27 12:18:52 +0000 received badge  Scholar (source)
2020-07-27 12:18:09 +0000 commented answer MQTT5 publish packets not dissected correctly unless Connect command packet is captured

Great, thanks. That works.

2020-07-26 16:07:04 +0000 edited question MQTT5 publish packets not dissected correctly unless Connect command packet is captured

MQTT5 publish packets not dissected correctly unless Connect command packet is captured MQTT5 packets include properties

2020-07-26 15:56:53 +0000 received badge  Editor (source)
2020-07-26 15:56:53 +0000 edited question MQTT5 publish packets not dissected correctly unless Connect command packet is captured

MQTT5 publish packets not dissected correctly unless Connect command packet is captured MQTT5 packets include properties

2020-07-26 15:55:55 +0000 asked a question MQTT5 publish packets not dissected correctly unless Connect command packet is captured

MQTT5 publish packets not dissected correctly unless Connect command packet is captured MQTT5 packets include properties