Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 441 Bytes

MqttBroker.md

File metadata and controls

24 lines (17 loc) · 441 Bytes

MQTT Broker

Setup

user@host:~$ sudo apt-get update
user@host:~$ sudo apt-get install mosquitto
user@host:~$ sudo update-rc.d mosquitto defaults
user@host:~$ sudo /etc/init.d/mosquitto start

Testing

As subscribers

root@edison:~# mosquitto_sub -h ip.of.deployed.server -p 1883 -t IoT101Inc/#

As publishers

root@edison:~# mosquitto_pub -h ip.of.deployed.server -p 1883 -t IoT101Inc/all -m "Hello All!"