class

MQTT::V5::Suback

Inherits MQTT::Header / BinData / Reference / Object

MQTT-3.9. One reason code per filter, in the order they were requested

Constants

AFTER_DESERIALIZE = [] of Nil

MQTT-3.9. One reason code per filter, in the order they were requested

ALLOWED_PROPERTIES = [PropertyId::ReasonString, PropertyId::UserProperty]
BEFORE_SERIALIZE = [] of Nil

MQTT-3.9. One reason code per filter, in the order they were requested

ENDIAN = ["big"]

MQTT-3.9. One reason code per filter, in the order they were requested

KLASS_NAME = [MQTT::V5::Suback]

MQTT-3.9. One reason code per filter, in the order they were requested

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.9. One reason code per filter, in the order they were requested

REMAINING = [] of Nil

MQTT-3.9. One reason code per filter, in the order they were requested

Class methods

bit_fields

MQTT-3.9. One reason code per filter, in the order they were requested

Source

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.

Source
calculate_length
Source
failure?(code : UInt8) : Bool
Source
message_id
message_id=(message_id : UInt16)
properties
properties=(properties : Properties)
raw_reason_codes
raw_reason_codes=(raw_reason_codes : Array(UInt8))
reason_codes
Source
reason_codes=(codes : Enumerable(ReasonCode))
Source
reason_string
Source
validate!
Source