lakhanshiva / MQTT-broker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MQTT-broker

Installing Mosquitto broker

sudo apt-get install mosquitto
sudo apt-get install mosquitto-clients

MQTT is based on publish subscribe messaging pattern

Subscribe to topic "temperature"

mosquitto_sub -t "temperature"

Open another terminal and publish to the topic "temperature"

mosquitto_pub -m "temperature exceeds 50 deg C" -t "temperature"

Secure MQTT server with a password

About

License:BSD 3-Clause "New" or "Revised" License