[Archive 1.0] 3. Mosquitto - mata-elang-stable/MataElang-Platform GitHub Wiki
Prerequisite
- Ubuntu 18.04.6 LTS installed and updated by
sudo apt update && sudo apt -y upgrade
command. - Time Zone and NTP already set.
Install Mosquitto
Referense : https://mosquitto.org/download/
1. Install Mosquitto.
sudo apt -y install mosquitto mosquitto-clients
Start Mosquitto
2. Start Mosquitto and confirm the service is active.
sudo systemctl enable mosquitto
sudo systemctl start mosquitto
systemctl status mosquitto
3. (optional) You can check received messages by "mosquitto_sub" command if MQTT broker can get messages.
mosquitto_sub -h localhost -t snoqttv5 -v
Useful Commands
- Show version:
mosquitto -h