module
MQTT::V5::ReasonCoded
Overview
Reason codes arrive from a remote host, so an unrecognised value must not be an exception. The raw byte is always kept
Direct including types
Defined in:
mqtt/v5/reason_code.crInstance Method Summary
- #error? : Bool
- #reason_code : ReasonCode | Nil
- #reason_code=(code : ReasonCode) : ReasonCode
- #reason_description : String
-
#success? : Bool
Unknown codes are treated by their range, as the specification requires