{"id":20030884,"url":"https://github.com/devgianlu/go-coap-mqtt","last_synced_at":"2026-05-14T20:33:39.472Z","repository":{"id":174053535,"uuid":"651664228","full_name":"devgianlu/go-coap-mqtt","owner":"devgianlu","description":"A CoAP \u003c-\u003e MQTT gateway written in Go.","archived":false,"fork":false,"pushed_at":"2023-06-09T21:48:08.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-31T14:38:27.770Z","etag":null,"topics":["coap","mqtt"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devgianlu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-09T18:58:23.000Z","updated_at":"2023-06-09T21:45:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"c644ba49-4852-4c44-9d5f-dde856a83fa4","html_url":"https://github.com/devgianlu/go-coap-mqtt","commit_stats":null,"previous_names":["devgianlu/go-coap-mqtt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devgianlu/go-coap-mqtt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgianlu%2Fgo-coap-mqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgianlu%2Fgo-coap-mqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgianlu%2Fgo-coap-mqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgianlu%2Fgo-coap-mqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devgianlu","download_url":"https://codeload.github.com/devgianlu/go-coap-mqtt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgianlu%2Fgo-coap-mqtt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33042240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coap","mqtt"],"created_at":"2024-11-13T09:29:06.686Z","updated_at":"2026-05-14T20:33:39.454Z","avatar_url":"https://github.com/devgianlu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-coap-mqtt\n\n`go-coap-mqtt` is a CoAP \u003c-\u003e MQTT gateway written in Go.\n\nMessages can be sent and received from both MQTT and CoAP. The following ways of exchanging messages are supported:\n\n- Publishing an MQTT message to a particular topic\n- Making a CoAP `POST /pub` request with a JSON body containing the topic and payload\n- Subscribing to a particular MQTT topic\n- Observing the CoAP `GET /sub/{topic}` endpoint\n\nThis project was developed as part of the university course\nof [Telematica](https://corsi.unipr.it/it/ugov/degreecourse/191394).\n\n## Testing\n\nThe `test` container has two CLI tools installed for interacting with the gateway and MQTT\nbroker: [mqtt](https://github.com/hivemq/mqtt-cli) and [coap-cli](https://github.com/mainflux/coap-cli).\nYou can get an interactive shell inside the container with `docker compose exec test bash`.\n\nTo make a CoAP request of the `/pub` endpoint use:\n\n```shell\ncoap-cli post pub -h gateway -p 5688 -d '{\"topic\":\"test\",\"payload\":\"hello from coap\"}' \n```\n\nTo make a CoAP request to the `/sub` endpoint use:\n\n```shell\ncoap-cli get sub/test -h gateway -p 5688 -o\n```\n\nTo publish an MQTT message use:\n\n```shell\nmqtt pub --host mqtt-broker --topic test -m \"hello from mqtt\"\n```\n\nTo subscribe to MQTT messages use:\n\n```shell\nmqtt sub --host mqtt-broker --topic test\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgianlu%2Fgo-coap-mqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevgianlu%2Fgo-coap-mqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgianlu%2Fgo-coap-mqtt/lists"}