Module packet

Module packet 

Expand description

Control packet types โ€” zero-copy decode, borrowed from the input buffer.

Modulesยง

ack ๐Ÿ”’
auth ๐Ÿ”’
connack ๐Ÿ”’
connect ๐Ÿ”’
disconnect ๐Ÿ”’
publish ๐Ÿ”’
reason_code ๐Ÿ”’
suback ๐Ÿ”’
subscribe ๐Ÿ”’
unsuback ๐Ÿ”’
unsubscribe ๐Ÿ”’

Structsยง

Ack
Acknowledgement packet (PUBACK, PUBREC, PUBREL, PUBCOMP).
Auth
AUTH packet for enhanced authentication.
Connack
CONNACK packet sent by the server in response to CONNECT.
Connect
CONNECT packet sent by the client to initiate a session.
ConnectFlags
Connect flags byte.
Disconnect
DISCONNECT packet signaling connection termination.
Publish
PUBLISH packet carrying an application message.
Suback
SUBACK packet acknowledging a SUBSCRIBE.
Subscribe
SUBSCRIBE packet requesting topic filter subscriptions.
Subscription
A single subscription entry (topic filter + options).
SubscriptionIter
Iterator over subscription entries.
SubscriptionOptions
Subscription options byte in a SUBSCRIBE payload entry.
TopicFilterIter
Iterator over topic filter strings in UNSUBSCRIBE payload.
Unsuback
UNSUBACK packet acknowledging an UNSUBSCRIBE.
Unsubscribe
UNSUBSCRIBE packet requesting removal of topic filter subscriptions.
Will
Will message included in a CONNECT packet.

Enumsยง

Packet
A decoded MQTT v5 packet. All borrowed data refers to the input buffer.
ReasonCode
All MQTT v5 reason codes.
RetainHandling
Retain handling option for SUBSCRIBE.

Functionsยง

subscription_encoded_len
Number of bytes needed to encode a single subscription entry.
topic_filter_encoded_len
Number of bytes needed to encode a single topic filter (for UNSUBSCRIBE).