Listen on MQTT messages on Ubuntu
Last modified by Normann P. Nielsen on 2025/12/12 15:14
Install the client on Ubuntu:
sudo apt update
sudo apt install mosquitto-clients
sudo apt install mosquitto-clients
The client is now installed and can be stated to Listen on a Topic:
mosquitto_sub -h localhost -t test
or with username and password:
mosquitto_sub -h localhost -t test -u "sammy" -P "password"