Open embeddedart opened 2 years ago
sudo systemctl enable mosquitto
The broker should now be running. You can confirm by checking the systemd
service status:-
sudo systemctl status mosquitto
now open confing file
sudo nano /etc/mosquitto/mosquitto.conf
delete the last line i.e. "include dir /etc/mosquitto/conf.d"
now type at the end of file:
allow anonymous false password_file /etc/mosquitto/pwfile listener port 1883
sudo apt install mosquitto mosquitto-clients