mosquitto
mosquitto is an Open Source MQTT server. MQTT is a machine to machine or IOT (Internet of Things) protocol.
To install run
1 |
apt-get install mosquitto mosquitto-clients |
To test, run
1 |
mosquitto_sub -h localhost -t test |
To create a user, run
1 |
mosquitto_passwd -c /etc/mosquitto/passwd USER_NAME |
Config file available at
1 |
/etc/mosquitto/conf.d/default.conf |
To restart, use
1 |
systemctl restart mosquitto |
To connect with user and password, use
1 |
mosquitto_sub -h localhost -t test -u "USER_NAME" -P "PASSWORD" |