struct Puback

Overview

Fixed header for PUBACK/PUBREC/PUBCOMP/PUBREL PACKET

7 3 0

+--------------------------+--------------------------+

| ACK (1) NIBBLE | RESERVED | 0

+--------------------------+--------------------------+

| Remaining Len = Len of Varable header(2) | 1

+-----------------------------------------------------+

Variable header ( LENGTH = 2 Bytes)

+--------------------------+--------------------------+

| Packet Identifier MSB | 2

+-----------------------------------------------------+

+--------------------------+--------------------------+

| Packet Identifier LSB | 3

+-----------------------------------------------------+

Defined in:

crymq/mqtt.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pkid : Pkid) #

[View source]

Instance Method Detail

def pkid : Pkid #

[View source]
def pkid=(pkid : Pkid) #

[View source]
def to_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::SystemEndian) #

[View source]