MQTT::V3::Suback
Inherits MQTT::Header / BinData / Reference / Object
Constants
AFTER_DESERIALIZE = [] of Nil
BEFORE_SERIALIZE = [] of Nil
ENDIAN = ["big"]
FAILURE = 128_u8
A broker signals a rejected topic filter with 0x80, which is not a
valid QoS value
KLASS_NAME = [MQTT::V3::Suback]
PARTS = [{type: "basic", name: message_id, cls: UInt16, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "variable_array", name: raw_return_codes, cls: UInt8, container: Array(UInt8), onlyif: nil, verify: nil, read_next: -> do
calculate_length < packet_length
end,
value: nil}] of Nil
REMAINING = [] of Nil
Class methods
bit_fields
SourceInstance 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)
raw_return_codes
raw_return_codes=(raw_return_codes : Array(UInt8))
return_codes
NOTE:: raises if the broker rejected any of the topic filters,
use raw_return_codes when a rejection is possible
return_codes=(codes : Enumerable(QoS))
Source