/article-java-mqtt-stack

Sample code for building a full stack MQTT solution with open source components

Primary LanguageJavaApache License 2.0Apache-2.0

Article-java-mqtt-stack

This repository includes all information to run the described sample from the article for building a full stack MQTT solution with java based open source components.

Steps to run the full Example

Prerequisites

  • Java 11
  • Maven

Message Broker

Backend MQTT Client

  • Compile and build java-mqtt-client example from the module
  • Details are described in java-mqtt-client/README.md
  • Start Main class from java-mqtt-client via IDE or as java -jar java-mqtt-client/target/backend-client-1.0-SNAPSHOT.jar

MQTT Command Line Interface

  • Get a package of your choice from HiveMQ-CLI via MQTT CLI github
  • Install mqtt-cli or build the jar (gradle build)
  • Run the script example-devices.sh

Further Documentation