2018-10-30
# Ubuntu 18.04 Bionic Beaver
sudo apt update
sudo apt install mosquitto mosquitto-clients
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"