This is a mqtt-broker written by a tyro in Mqtt. I borrowed a lot of codes from iot-mqtt-server.
- The project is based on maven
- Implement most mqtt stuffs via Java netty
- Use springboot for injections and configs
cd broker
mvn spring-boot:run
Server is running on port 1883.
We need a mqtt client for our tests. A recommended tool is mqtt-spy.
Go to the directory mqtt-spy locates.
java -jar mqtt-spy-1.0.1-beta-b18-jar-with-dependencies.jar
The configuration file should look like this:
Go to the connection tag, and do some publications and subscriptions: