Install MQTT mosquitto on Raspberry pi
1. $ sudo apt update && sudo apt upgrade -y
2. $ sudo apt install mosquitto mosquitto-clients
3. $ sudo systemctl enable mosquitto.service
4. $ mosquitto -v
5. $ sudo nano /etc/mosquitto/mosquitto.conf
Add this 2 line below
listener 1883
allow_anonymous true
6. $ sudo systemctl restart mosquitto
Ещё видео!