Module packet

Module packet 

Source
Expand description

§MQTT Packet Structures and Serialization

This module defines the core MQTT packet types and the traits for encoding and decoding them to and from a byte buffer. It supports both MQTT v3.1.1 and v5 through conditional compilation.

Structs§

ConnAck
Connect
Disconnect
PingReq
PingResp
PubAck
Publish
SubAck
Subscribe

Enums§

MqttPacket
An enumeration of all possible MQTT control packets.
QoS
Represents the Quality of Service (QoS) levels for MQTT messages.

Traits§

DecodePacket
A trait for packets that can be decoded from a byte buffer.
EncodePacket
A trait for packets that can be encoded into a byte buffer.

Functions§

decode
Decodes a raw byte buffer into a specific MqttPacket.