Skip to content

AG - 76 - Add CoAP transport, client, broker, configuration, and documentation#82

Open
rodneyosodo wants to merge 4 commits into
absmach:mainfrom
rodneyosodo:fix/76
Open

AG - 76 - Add CoAP transport, client, broker, configuration, and documentation#82
rodneyosodo wants to merge 4 commits into
absmach:mainfrom
rodneyosodo:fix/76

Conversation

@rodneyosodo

Copy link
Copy Markdown
Contributor

What does this do?

Implements CoAP transport with optional DTLS (PSK & X.509) support for the Magistrala agent, mirroring the existing MQTT broker functionality. Adds a transport abstraction layer (Publisher, Connector, Broker interfaces) so MQTT and CoAP can be used interchangeably.

Which issue(s) does this PR fix/relate to?

Resolves #76

List any changes that modify/break current functionality

  • NewConfig() signature updated to include CoAPConfig and Transport field
  • Existing tests (service_test.go, bootstrap_test.go) updated to pass new config params
  • MQTT remains the default transport — no behavioral change for existing deployments

Have you included tests for your changes?

Yes

Did you document any new/modified functionality?

Yes

Notes

  • Transport is selected via the MG_AGENT_TRANSPORT env var ("coap" or "mqtt").
  • Only one transport can be active at a time.
  • CoAP paths mirror MQTT topics with a / prefix (e.g., m/{domain}/c/{channel}/res/m/{domain}/c/{channel}/res).

@rodneyosodo rodneyosodo force-pushed the fix/76 branch 2 times, most recently from fce1b77 to b16f4c1 Compare June 11, 2026 12:57
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CoAP Transport Support with DTLS

1 participant