IOT|HOME Automation | MQTT Server with Pi, LCD and Camra | Part 1| Tuotial #22
Vložit
- čas přidán 12. 09. 2024
- IOT|HOME Automation | MQTT Server with Pi, LCD and Camra | Part 1| Tuotial #22
In this tutorial series we will biuld a Pi hub with MQTT broker.
Products Links:
www.dfrobot.co... (SEN0173) $24.9
www.dfrobot.co... (DFR0506) $69
www.dfrobot.co... (DFR0431) $39.95
################################
##### Raspbian commnds for Pi
################################
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mosquitto
sudo apt-get install mosquitto-clients
sudo nano /etc/mosquitto/mosquitto.conf
allow_anonymous false
password_file /etc/mosquitto/passwordfile
listener 1883
sudo mosquitto_passwd -c /etc/mosquitto/passwordfile netmedias
mosquitto_sub -d -u netmedias -P password1 -t "mqtt/test"
mosquitto_pub -d -u netmedias -P password1 -t "mqtt/test" -m "mosquitto is working!"
################################
Touchscreen with Raspberry Pi
You need to reset resolution to avoid touch differentiation caused by resolution difference between Raspberry Pi and the Touchscreen.
################################
Enter "sudo nano/boot/config.txt" modify or add the project as below:
#remove black borders
disable_overscan=1
#set specific CVT mode
hdmi_cvt 1024 600 60 6 0 0 0
#set CVT as default
hdmi_group=2
hdmi_mode=87