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.cr

Instance Method Summary

Instance Method Detail

def error? : Bool #

[View source]
def reason_code : ReasonCode | Nil #

[View source]
def reason_code=(code : ReasonCode) : ReasonCode #

[View source]
def reason_description : String #

[View source]
def success? : Bool #

Unknown codes are treated by their range, as the specification requires


[View source]