class

MQTT::V3::Unsubscribe

Inherits MQTT::Header / BinData / Reference / Object

Constants

AFTER_DESERIALIZE = [] of Nil
BEFORE_SERIALIZE = [] of Nil
ENDIAN = ["big"]
KLASS_NAME = [MQTT::V3::Unsubscribe]
PARTS = [{type: "basic", name: message_id, cls: UInt16, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "variable_array", name: topics, cls: MQTT::V3::UnsubTopic, container: Array(MQTT::V3::UnsubTopic), onlyif: nil, verify: nil, read_next: -> do calculate_length < packet_length end, value: nil}] of Nil
REMAINING = [] of Nil

Class methods

bit_fields
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
message_id
message_id=(message_id : UInt16)
topic=(filter)
Source
topics

Will continue reading data into the array until the sum of the topics array + 2 message_id bytes equals the total size

Source
topics=(topics : Array(MQTT::V3::UnsubTopic))

Will continue reading data into the array until the sum of the topics array + 2 message_id bytes equals the total size

topics=(array : Enumerable(String))
Source