Difference between revisions of "MQTT: install di Ubuntu 20.04 lebih simple"

From OnnoWiki
Jump to navigation Jump to search
(Created page with " ==Referensi== * https://www.arubacloud.com/tutorial/how-to-install-and-secure-mosquitto-on-ubuntu-20-04.aspx#HowtoinstallandsecureMosquittoonUbuntu20.04")
 
Line 1: Line 1:
 +
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”
  
  

Revision as of 08:41, 2 April 2022

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”


Referensi