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
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
Sourcemessage_id
message_id=(message_id : UInt16)
topic=(filter)
Sourcetopics
Will continue reading data into the array until the sum of the topics array + 2 message_id bytes equals the total size
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