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.
- Java 11
- Maven
- Download the latest HiveMQ archive from HiveMQ - Developers getting started
- Unpack
- Run start HiveMQ
- 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
- 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