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
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.
_reserved_
_reserved_=(_reserved_ : UInt8)
bytesize
Sourcefilter
filter=(filter : String)
filter_size
filter_size=(filter_size : UInt16)
no_local=(no_local : UInt8)
don't deliver our own publications back to us
qos
Sourceqos=(qos : UInt8)
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
retain_handling
Sourceretain_handling=(retain_handling : UInt8)
retain_handling=(value : MQTT::V5::RetainHandling)
Source