|
ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
|
MQTT-SN v1.2 wire codec (PC_ENABLE_MQTT_SN) - zero-heap message builder + parser for MQTT for Sensor Networks, the UDP / non-TCP MQTT variant for constrained, lossy links (topic IDs instead of strings, gateway discovery, sleeping-client keep-alive). More...
#include "protocore_config.h"Go to the source code of this file.
MQTT-SN v1.2 wire codec (PC_ENABLE_MQTT_SN) - zero-heap message builder + parser for MQTT for Sensor Networks, the UDP / non-TCP MQTT variant for constrained, lossy links (topic IDs instead of strings, gateway discovery, sleeping-client keep-alive).
Spec: MQTT-SN v1.2 (OASIS contribution). Each message is:
0x01 then a big-endian uint16 total length.Verified against the Eclipse Paho MQTT-SN reference (message-type enum + length encoding) and the v1.2 spec. This is the wire codec only; the gateway connection, topic registry, and retransmission/sleep state are the application's.
Definition in file mqtt_sn.h.