Module constants

Source
Expand description

MQTT Protocol Constants

This module defines constants for MQTT packet types and flags to avoid magic numbers throughout the codebase.

Modulesยง

buffer
Buffer and capacity constants
connect_flags
CONNECT flags masks
fixed_header
Fixed header byte 1 values (packet type << 4 | flags)
limits
String and binary data limits
masks
Masks for extracting fields from fixed header
packets
Common packet payloads
publish_flags
PUBLISH flags masks
subscription
Subscription option masks
time
Time-related constants
variable_byte
Variable byte integer constants
version
Protocol version constants