A class holding Reason Code values originating from Control Packets.
class reason_code
|
Name |
Description |
|---|---|
|
Returns a message describing the meaning behind the Reason Code. |
|
|
Indication if the object holds a Reason Code indicating an error. |
|
|
Returns the byte value of the Reason Code. |
|
Name |
Description |
|---|---|
|
Operator less than. |
|
|
Insertion operator. |
|
|
Equality operator. |
A Reason Code is a one byte unsigned value that indicates the result of an
operation. Reason Codes less than 0x80 indicate successful completion of
an operation. The normal Reason Code for success is 0. Reason Code values
of 0x80 or greater indicate failure. The CONNACK, PUBACK, PUBREC, PUBREL, PUBCOMP, DISCONNECT and AUTH Control Packets have a single
Reason Code as part of the Variable Header. The SUBACK and UNSUBACK packets contain a list
of one or more Reason Codes in the Payload.
See for a complete
list of all possible instances of this class.
Reason
Codes
Header: async_mqtt5/reason_codes.hpp
Convenience header: async_mqtt5.hpp