Add MQTT convergence layer adapter with TLS and auth support - #99
Open
zebastian wants to merge 3 commits into
Open
Add MQTT convergence layer adapter with TLS and auth support#99zebastian wants to merge 3 commits into
zebastian wants to merge 3 commits into
Conversation
Implement a new CLA pair (mqttcli/mqttclo) that uses an MQTT broker
for direct or store-and-forward bundle delivery.
this uses the Eclipse Paho MQTT C synchronous client (libpaho-mqtt3cs)
mqtt specifics:
- Persistent sessions (cleansession=0) for offline queuing
- Topic scheme: ion/bundles/<duct_suffix>
- Optional username/password auth (-u/-p flags)
- Optional TLS with server and mutual authentication (-t/-c/-C/-k/-K)
New files:
- bpv7/mqtt/mqttcla.h — shared constants, duct parser, config helpers
- bpv7/mqtt/mqttclo.c — output daemon (MQTT publisher)
- bpv7/mqtt/mqttcli.c — input daemon (MQTT subscriber)
- bpv7/doc/pod1/mqttcli.pod — man page
- bpv7/doc/pod1/mqttclo.pod — man page
Build system:
- configure.ac: --with-paho-mqtt option, prefers libpaho-mqtt3cs (TLS),
falls back to libpaho-mqtt3c with warning
- Makefile.am: conditional ENABLE_MQTT build rules
Tests (both marked .optional, require mosquitto broker):
- tests/loopback-mqtt — basic loopback send/receive
- tests/mqtt-store-forward — offline subscriber queuing and redelivery
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement a new CLA pair (mqttcli/mqttclo) that uses an MQTT broker
for direct or store-and-forward bundle delivery.
see also #75
this uses the Eclipse Paho MQTT C synchronous client (libpaho-mqtt3cs)
mqtt specifics:
New files:
Build system:
falls back to libpaho-mqtt3c with warning
Tests (both marked .optional, require mosquitto broker):
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com