{"id":20077437,"url":"https://github.com/drogue-iot/quarkus-mqtt-integration-example","last_synced_at":"2026-05-06T19:40:30.346Z","repository":{"id":38839869,"uuid":"360896851","full_name":"drogue-iot/quarkus-mqtt-integration-example","owner":"drogue-iot","description":"Demoing Drogue IoT and Quarkus using the MQTT integration","archived":false,"fork":false,"pushed_at":"2022-06-30T07:15:53.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-01-13T01:07:12.997Z","etag":null,"topics":["iot","mqtt","quarkus"],"latest_commit_sha":null,"homepage":"https://drogue.io","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drogue-iot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-23T13:40:18.000Z","updated_at":"2022-06-02T08:11:54.000Z","dependencies_parsed_at":"2022-08-26T20:02:25.102Z","dependency_job_id":null,"html_url":"https://github.com/drogue-iot/quarkus-mqtt-integration-example","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drogue-iot%2Fquarkus-mqtt-integration-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drogue-iot%2Fquarkus-mqtt-integration-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drogue-iot%2Fquarkus-mqtt-integration-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drogue-iot%2Fquarkus-mqtt-integration-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drogue-iot","download_url":"https://codeload.github.com/drogue-iot/quarkus-mqtt-integration-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241509617,"owners_count":19974071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["iot","mqtt","quarkus"],"created_at":"2024-11-13T15:08:14.722Z","updated_at":"2026-05-06T19:40:30.292Z","avatar_url":"https://github.com/drogue-iot.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drogue IoT: Quarkus MQTT integration example\n\n[![CI](https://github.com/drogue-iot/quarkus-mqtt-integration-example/workflows/CI/badge.svg)](https://github.com/drogue-iot/quarkus-mqtt-integration-example/actions?query=workflow%3A%22CI%22)\n[![Matrix](https://img.shields.io/matrix/drogue-iot:matrix.org)](https://matrix.to/#/#drogue-iot:matrix.org)\n\nThis is an example of using the MQTT integration of [Drogue IoT](https://drogue.io) in combination\nwith [Quarkus](https://quarkus.io/).\n\n## What does it do?\n\nIt is a small Quarkus application, which connects to the MQTT integration endpoint of Drogue IoT. Receiving messages\nfrom devices publishing to Drogue IoT Cloud.\n\nIt will parse messages and extract TTN (The Things Network) uplink messages from that stream. When a TTN uplink message\nis received for port 1 and with the payload `ping`, then it will respond with the current active response command.\n\nThe response will be sent back to the device using a downlink message.\n\nNOTE: A downlink message will only be sent shortly after the uplink message was received, as this is when the device\nexpects it. Setting a new response command will not send a new downlink message.\n\nWhen you sent `led:on` to the device, the blue LED should turn on. When you send `led:off`, it should turn off again.\n\nNOTE: There is a short time window, between the device sending and receiving. It may happen that the downlink command\ntakes a bit too long, and so it is delivered the next time the device connects.\n\n## How can you run it?\n\nThis is a normal Quarkus application, and you can simply run it using `mvn quarkus:dev`. Or any of the other ways\nQuarkus applications can be run.\n\nThe repository has a [`deploy/`](/deploy) folder, which contains deployment scripts for Kubernetes.\n\nAll you need do is to fill in the values in the `010-configuration.template.yaml`, and deploy the YAML files.\n\n## What is needed to run this?\n\nA bunch of things come together here. You can decide how much you want to self-host, how much you want to tweak, and how\nmuch you just want to consume:\n\n* An STM32L0 Discovery kit for LoRa, … (B-L072Z-LRWAN1) -\u003e https://www.st.com/en/evaluation-tools/b-l072z-lrwan1.html\n    * Yes, you can use a different board, but you might need to tweak the firmware.\n* TTN coverage\n    * Maybe you need your own LoRaWAN gateway, connected to TTN\n* The firmware\n  from [drogue-iot/drogue-device-ng](https://github.com/drogue-iot/drogue-device-ng/tree/main/examples/stm32l0xx/lora-discovery)\n* A TTN (The Things Network) account (for v3 of the API)\n    * Including an API key which allows to create applications and devices\n* A Drogue IoT that is publicly reachable\n    * You can self-host this\n    * You can use the \"devbox\" instance (which is unstable and insecure)\n      -\u003e https://console-drogue-dev.apps.wonderful.iot-playground.org/\n    * You can use the \"sandbox\" instance (which is more stable and more secure) -\u003e https://sandbox.drogue.cloud\n        * Currently, it is missing the features which this application requires. You need to wait until version 0.5 of\n          Drogue Cloud is released.\n* Set up the TTN integration of Drogue Cloud -\u003e https://book.drogue.io/drogue-cloud/dev/ttn/index.html\n    * Alternatively, you can manually set up the devices and connections.\n    * Set up a new application\n    * Register a new device\n* Run this application, and point it to the MQTT integration of Drogue Cloud\n    * As mentioned above, you can run this locally, on your own Kubernetes server, or with Podman, or in some other way\n      a Quarkus application can run.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrogue-iot%2Fquarkus-mqtt-integration-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrogue-iot%2Fquarkus-mqtt-integration-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrogue-iot%2Fquarkus-mqtt-integration-example/lists"}