Mosquitto - johnosbb/Automation GitHub Wiki
Restart the Service
sudo systemctl restart mosquitto
Publishing from the Command Line
mosquitto_pub -u xxxxx -P xxxxx -t 'test/topic' -m 'helloWorld'
Subscribing to all topics
mosquitto_sub -u xxxxx -P xxxxxx -t +/#
Start the service
sudo systemctl start mosquitto
Stop the service
sudo systemctl stop mosquitto
Configuration
persistence true persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d password_file /etc/mosquitto/passwd listener 1883 192.168.1.19 allow_anonymous false
Tools
MQTT.fx, java based client for Windows