PUBREL
Assured Publish Release (part 2)
This message is either the response from a publisher to a PUBREC
message from the broker, or the response from the broker to a PUBREC message
from a subscriber. It is the third message of the QoS 2 protocol flow.
See the Protocol Flow section for more details.
Fixed Header
See the Fixed Header section for more information,
bit |
7
|
6
|
5
|
4
|
3
|
2
|
1
|
0
|
byte 1 |
Message Type (6)
|
DUP flag
|
QoS level
|
RETAIN
|
|
0
|
1
|
1
|
0
|
x
|
x
|
x
|
x
|
byte 2 |
Remaining Length (2)
|
|
0
|
0
|
0
|
0
|
0
|
0
|
1
|
0
|
QoS level
The QoS level is not used for the PUBREL message.
DUP flag
The DUP flag is not used for the PUBREL message.
RETAIN flag
The RETAIN flag is not used for the PUBREL message.
Remaining Length
The Remaining Length is the length of the Variable Header (2 bytes)
This may be a multi-byte field. See the Fixed
Header section for more details.
Variable Header
The Variable Header portion of the PUBREL message contains the same Message
Identifier as the PUBREC message that is being
acknowledged.
See the Variable Header section for
more information.
bit |
7
|
6
|
5
|
4
|
3
|
2
|
1
|
0
|
byte 1 |
Message Identifier MSB
|
byte 2 |
Message Identifier LSB
|
Payload
NONE
Actions
Upon receipt of a PUBREL message from a publisher, the broker should make
the original message available to interested subscribers, and send a PUBCOMP
message to the publisher with the same Message Identifier. In the case
of a subscriber receiving a PUBREL from the broker, it should make the
message available to the subscribing application and send a PUBCOMP
back to the broker. For more discussion on actions to be performed, see
the Protocol Flow section.
Discussion
-
ASC on DUP flag
-
The protocol flows for QoS2 do not require the use of the DUP flag, so
it has been dropped.
-
ASC on naming
-
This is the message formerly known as PUBACK2
-
ASC on message mnemonics
-
PUBACK1, 2 and 3 are rather boring names for these messags. Can we think
of more meaningful names?
BACK to index
Last Modified: 19-Oct-99