MQTT: install di Ubuntu 20.04 lebih simple
Revision as of 08:41, 2 April 2022 by Onnowpurbo (talk | contribs)
Instalasi
sudo apt update -y && sudo apt install mosquitto mosquitto-clients -y
Check & Start
sudo systemctl status mosquitto sudo systemctl start mosquitto sudo systemctl enable mosquitto
Subscribe
mosquitto_sub -h address -t topic
Publish
mosquitto_pub -h address -t topic -m “message”