Skip to content

yyvax/toyMqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is toy-mqtt? YYY

This is a mqtt-broker written by a tyro in Mqtt. I borrowed a lot of codes from iot-mqtt-server.

Introduction

  1. The project is based on maven
  2. Implement most mqtt stuffs via Java netty
  3. Use springboot for injections and configs

Run the broker

cd broker
mvn spring-boot:run
Server is running on port 1883.

Test using a mqtt client

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:

Releases

No releases published

Packages

No packages published

Languages