Here is the Disconnect frame format from the MQTT protocol.
Refer to the end of the post for more information for various fields.
The official definition can be found here.

byte

content (hexa)

content

1

e

MQTT Control Packet type

0

Reserved

2

0

Remaining
Length

0

MQTT Control Packet type:
This is present for each frame, it announces the coming frame.

Remaining Length:
Length of the rest of the frame. “4 + topic_length + payload_length” is the formula used to calculate this length.

Back Next

Disconnect
Tagged on:                             

3 thoughts on “Disconnect

Leave a Reply