Install moquette

Run server  mqtt moquette download file distribution-0.10-bundle-tar.tar.gz  from:

https://bintray.com/artifact/download/andsel/generic/distribution-0.10-bundle-tar.tar.gz

Run on linux

 

-       tar zxf distribution-0.10-bundle-tar.tar.gz

-       cd bin

-       ./moquette.sh

 

Run on windows

 

-       cd bin

-       .\moquette.bat

 

Start broker mqtt moquette with  port 1883 and protocol tcp.

Username / password config in file config/password_file.conf

username/password default : testuser/ passwd

Note:  password encode by sha256

 mqtt client connect to  tcp://localhost:1883 for check mqtt broker