MQTT::V5::Unsuback
Inherits MQTT::Header / BinData / Reference / Object
MQTT-3.11
Constants
AFTER_DESERIALIZE = [] of Nil
MQTT-3.11
ALLOWED_PROPERTIES = [PropertyId::ReasonString, PropertyId::UserProperty]
BEFORE_SERIALIZE = [] of Nil
MQTT-3.11
ENDIAN = ["big"]
MQTT-3.11
KLASS_NAME = [MQTT::V5::Unsuback]
MQTT-3.11
PARTS = [{type: "basic", name: message_id, cls: UInt16, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "basic", name: properties, cls: MQTT::V5::Properties, onlyif: nil, verify: nil, value: nil}, {type: "variable_array", name: raw_reason_codes, cls: UInt8, container: Array(UInt8), onlyif: nil, verify: nil, read_next: -> do
consumed < packet_length
end,
value: nil}] of Nil
MQTT-3.11
REMAINING = [] of Nil
MQTT-3.11
Class methods
Instance methods
__format__
A group or bit_field captures the endianness at its declaration point, so
declaring endian after one would silently leave it system-endian. Fail loudly.
calculate_length
Sourcefailure?(code : UInt8) : Bool
Sourcemessage_id
message_id=(message_id : UInt16)
properties
properties=(properties : Properties)
raw_reason_codes
raw_reason_codes=(raw_reason_codes : Array(UInt8))
reason_codes
Sourcereason_codes=(codes : Enumerable(ReasonCode))
Sourcevalidate!
Source