About MQTT

2018-10-30

Other projects

Install

# Ubuntu 18.04 Bionic Beaver
sudo apt update
sudo apt install mosquitto mosquitto-clients

Run

Open Firewall for 11883!

Terminal window 1:

mosquitto -p 11883 -d # deamonize, port 1883 was alredy in use

Terminal window 2, subscribe:

mosquitto_sub -h 127.0.0.1 -p 11883 -t house/#

Terminal window 3, publish:

mosquitto_pub -h 127.0.0.1 -p 11883 -t house/s1 -m "test"

Tags

Archives

Languages

Recent Posts

This Page