embeddedart / embeddedart.github.io

Embedded Art website https://www.embeddedart.in
0 stars 0 forks source link

Install the mosquitto MQTT Broker on Raspberry Pi #3

Open embeddedart opened 2 years ago

embeddedart commented 2 years ago
  1. Install the mosquitto MQTT Broker

sudo apt install mosquitto mosquitto-clients

embeddedart commented 2 years ago
  1. Enable the mosquitto broker sudo systemctl enable mosquitto

The broker should now be running. You can confirm by checking the systemd service status:- sudo systemctl status mosquitto

embeddedart commented 2 years ago

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