MQTT控制報文格式 -- PUBREL – Publish release (QoS 2 publish received, part 2)

  • PUBREL 數據包是對 PUBREC 數據包的響應。 它是 QoS 2 協議交換的第三個數據包。
  • 該數據包剩餘長度爲2
  • 該數據包沒有Payload
  • 該數據包可變包頭長度爲2個字節

1. 固定包頭 Fixed Header

Bit

7

6

5

4

3

2

1

0

byte 1

MQTT Control Packet type (6)

Reserved

 

0

1

1

0

0

0

1

0

byte 2

Remaining Length (2)

 

0

0

0

0

0

0

1

0

2. 可變包頭 Variable Header

可變包頭包含與正在確認的 PUBREC 數據包相同的數據包標識符。

Bit

7

6

5

4

3

2

1

0

byte 1

Packet Identifier MSB

byte 2

Packet Identifier LSB

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章