class
MQTT::V5::SubTopic
- MQTT::V5::SubTopic
- BinData
- Reference
- Object
Overview
A topic filter plus the 5.0 subscription options byte
Defined in:
mqtt/v5/subscribe.crConstant Summary
-
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 Method Summary
-
.bit_fields
A topic filter plus the 5.0 subscription options byte
Instance Method Summary
-
#__format__ : IO::ByteFormat
A
grouporbit_fieldcaptures the endianness at its declaration point, so declaringendianafter one would silently leave it system-endian. - #_reserved_ : UInt8
- #_reserved_=(_reserved_ : UInt8)
- #bytesize
- #filter : String
- #filter=(filter : String)
- #filter_size : UInt16
- #filter_size=(filter_size : UInt16)
-
#no_local : Bool
don't deliver our own publications back to us
-
#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
- #qos : MQTT::QoS
- #qos=(qos : UInt8)
- #qos=(value : MQTT::QoS)
-
#retain_as_published : Bool
keep the retain flag the publisher set, rather than clearing it
-
#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 : MQTT::V5::RetainHandling
- #retain_handling=(retain_handling : UInt8)
- #retain_handling=(value : MQTT::V5::RetainHandling)
Class Method Detail
Instance Method Detail
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.
keep the retain flag the publisher set, rather than clearing it
keep the retain flag the publisher set, rather than clearing it