struct Subscribe
Overview
Fixed header for SUBSCRIBE PACKET
7 3 0
+--------------------------+--------------------------+
| SUBSCRIBE (8) NIBBLE | RESERVED | 0
+--------------------------+--------------------------+
| Remaining Len = Len of Variable header(2) + Payload | 1
+-----------------------------------------------------+
Variable header ( LENGTH = 2 Bytes)
+--------------------------+--------------------------+
| Packet Identifier MSB | 2
+-----------------------------------------------------+
+--------------------------+--------------------------+
| Packet Identifier LSB | 3
+-----------------------------------------------------+
Payload: Set these optionals
2 bytes subscribe topic length + subscribe topic + 1 byte qos
... for all the topics
Defined in:
crymq/mqtt.crConstructors
Instance Method Summary
- #pkid : Pkid
- #pkid=(pkid : Pkid)
- #to_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::SystemEndian)