Zero-copy, interruptible MQTT protocol
written in C. Based initially on Deoxxa’s
code and extended to
support full client and server parsing and serialization.
mqtt-protocol-c is designed for use in resource-constrained environments. To that end, it avoids making any memory allocations or assumptions about the underlying system. It handles only the binary parsing/serialising part of the MQTT protocol, leaving all the logic and networking up to the user.
Take a look at
test_parser in the
BSD-3 Clause license. You can read the full license from here.
Source Code (submodule, may be patched).
Networking Support ,Component