How to install MQTT Mosquitto and test with Node Red on Linux OS
Автор: IOT Connectivity Simplified
Загружено: 2024-03-20
Просмотров: 5448
This video demonstrates how to install a MQTT broker (Mosquitto) on a Raspberry PI. The connectivity is tested with Node Red standard MQTT nodes and also external connectivity using MQTT explorer. It also demonstrates how to fix unexpected Port 1883 busy feature, discovered during the installing of Mosquitto.
Video Contents
0:00 Intro
0:53 Installing Mosquitto - Getting ready
1:42 Installing Mosquitto
2:00 Installing Mosquitto - Port busy error
3:38 Installing Mosquitto - Setting user & password
6:06 Installing Mosquitto - auto start
6:22 Using MQTT with Node Red
11:43 Test using MQTT Explorer
Help...
sudo apt update
sudo apt upgrade
sudo apt-get install mosquitto
mosquitto -v
Settin Password
cd /etc/mosquitto
sudo mosquitto_passwd -c passwordfile RasPi
sudo mosquitto_passwd -b passwordfile RasPi2 password - Hello
sudo mosquitto_passwd -D passwordfile RasPi2
cd /etc/mosquitto
sudo nano mosquitto.conf
Changes to mosquitto.conf file.
listener 1883
Enabling Password
allow_anonymous false
password_file /etc/mosquitto/passwordfile
Enabling autostart
sudo systemctl enable mosquitto.service
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: