Mosquitto is an open source message broker, It's a very lightweight uses a publish/subscribe messages. Implements that MQTT (MQ Telemetry Transport Protocol) version 3.1 and 3.1.1. This makes it suitable for "machine to machine" messaging such as with low power sensors or mobile devices also support intel-edition, Arduino board and etc.
By default the server listens on the following ports:
1883: MQTT, unencrypted
8883: MQTT, encrypted
8884: MQTT, encrypted, client certificate required
8080: MQTT over WebSockets, unencrypted
By default the Mosquitto install in embedded computers or micro-controllers like Intel-Edison, Arduino broard. If you want to install.
Install MQTT:
You should first import the new repository,
$ sudo wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key
$ sudo apt-key add mosquitto-repo.gpg.key
Then make the repository available to apt:
Then one of the following, depending on which version of debian you are using:
$ sudo wget http://repo.mosquitto.org/debian/mosquitto-wheezy.list
$ sudo wget http://repo.mosquitto.org/debian/mosquitto-jessie.list
For Ubuntu: https://launchpad.net/~mosquitto-dev/+archive/ubuntu/mosquitto-ppa/
Then update apt information:
And discover what mosquitto packages are available:
Or run the install:
Start the MQTT:
Stop the MQTT:
Status the MQTT:
To check the network port:
You can test the subscribe,
Comments (0)