class

MQTT::V5::SubTopic

Inherits BinData / Reference / Object

A topic filter plus the 5.0 subscription options byte

Constants

AFTER_DESERIALIZE = [] of Nil

A topic filter plus the 5.0 subscription options byte

BEFORE_SERIALIZE = [] of Nil

A topic filter plus the 5.0 subscription options byte

ENDIAN = ["big"]

A topic filter plus the 5.0 subscription options byte

KLASS_NAME = [MQTT::V5::SubTopic]

A topic filter plus the 5.0 subscription options byte

PARTS = [{type: "basic", name: filter_size, cls: UInt16, onlyif: nil, verify: nil, value: -> do filter.bytesize end, endian: nil}, {type: "string", name: filter, cls: String, onlyif: nil, verify: nil, length: -> do filter_size end, value: nil, encoding: nil}, {type: "bitfield", name: 5, cls: MQTT::V5::SubTopic, onlyif: nil, verify: nil, endian: IO::ByteFormat::BigEndian}] of Nil

A topic filter plus the 5.0 subscription options byte

REMAINING = [] of Nil

A topic filter plus the 5.0 subscription options byte

Class methods

bit_fields

A topic filter plus the 5.0 subscription options byte

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
_reserved_
_reserved_=(_reserved_ : UInt8)
bytesize
Source
filter
filter=(filter : String)
filter_size
filter_size=(filter_size : UInt16)
no_local

don't deliver our own publications back to us

Source
no_local=(no_local : UInt8)

don't deliver our own publications back to us

no_local=(value : Bool)

don't deliver our own publications back to us

Source
qos=(qos : UInt8)
qos=(value : MQTT::QoS)
Source
retain_as_published

keep the retain flag the publisher set, rather than clearing it

Source
retain_as_published=(retain_as_published : UInt8)

keep the retain flag the publisher set, rather than clearing it

retain_as_published=(value : Bool)

keep the retain flag the publisher set, rather than clearing it

Source
retain_handling
Source
retain_handling=(retain_handling : UInt8)
retain_handling=(value : MQTT::V5::RetainHandling)
Source