Building a Secure MQTT Broker with ESP32

High Voltages August 31, 2024
Video Thumbnail
High Voltages Logo

High Voltages

@highvoltages

About

"Projects we have completed demonstrate what we know" . Nothing better in Engineering is as innovative as electronics as it is deeply embedded in every day life and It is revolutionizing our life with pace unprecedented. Electronics and its related fields are the fine prospect of future brilliance , People are learning Artificial Intelligence , Micro controller Programming and IoT to open up the gates of future technology and vision to them . High Voltages is a platform where you can find Lectures enlightening you about programming of different platforms , Electronics projects made and elaborated to the basic level , we reach every level to indulge you in the electronics world in waiting to secure your dreams. As we ourselves the custodian of the future ideas we help it turn into reality and make projects for you at a very felicitous prize . Our Projects videos must your brain into gear and make your self a productive personage in an enchanted passionate fraternity.

Video Description

In this video, we explore the potential of using the ESP32 as an MQTT broker for small IoT projects using the PicoMQTT library. We'll cover why the ESP32 is a great choice for connecting a few devices, the features and limitations of the PicoMQTT library, and how to set up the ESP32 as an MQTT broker in different network scenarios and we will also learn how to secure our MQTT broker using username and password. This library will help us create a secure and cheap MQTT broker using ESP32. We will look at two scenarios: 1️⃣ ESP32 as an MQTT broker while connecting to the home network, with all devices connected to the router. 2️⃣ ESP32 as an MQTT broker and WiFi access point, where all devices connect directly to the ESP32 to access the MQTT broker. Furthermore, we'll test the broker using: 📱 Smartphone MQTT dashboard. (You can use any app) 🐍 Python client: https://youtu.be/IQBWMHMTTO8 ⚙️ ESP32 as MQTT client: https://youtu.be/lEXQ9w1z7Aw 📚 PicoMQTT library: https://github.com/mlesniew/PicoMQTT ESP32 as MQTT brokerusing sMQTTbroker library https://www.youtube.com/watch?v=ji_nfVEI25g Whether you're just starting out or looking to optimize your IoT setup, this video will guide you through the process! Don't forget to like, share, and subscribe for more tech tutorials! 🔔 Code and blog: https://github.com/HighVoltages/ESP32-as-MQTT-broker ##################### Hardware used ############## ✅ ESP32 : https://amzn.to/46ZB2I2 ✅ XIAO NRF52840 sense by seeed studio: https://amzn.to/3ACVbrD 📖 Check my book "Hands on ESP32 using Arduino IDE book" : https://amzn.to/4cBAnOd ################################################################### Chapters: ➡️00:00 ESP32 as a MQTT broker (Introduction) ➡️00:15 MQTT cloud options ➡️00:49 why we might need to use ESP32 as MQTT broker ? ➡️01:17 ESP32 as a MQTT broker using Pico MQTT library ➡️01:25 PicoMQTT library Features ➡️02:12 PicoMQTT library Limitations ➡️02:43 ESP32 as MQTT broker two scenerios ➡️03:05 ESP32 as MQTT broker only while connected to the home network ➡️03:39 ESP32 as MQTT broker only while connected to the home network code ➡️06:11 Testing using Python MQTT client ➡️07:09 Secure ESP32 MQTT broker ➡️08:46 Testing using Python ,ESP32 and smartphone as MQTT clients ➡️12:48 ESP32 as MQTT broker and access point ➡️14:16 Testing using Python ,ESP32 and smartphone as MQTT clients ➡️15:35 Performance of the library ➡️16:10 Hands on ESP32 using Arduino IDE book ############################################################### Order your projects at fiverr: https://www.fiverr.com/users/emmiasim67/ ----------------- HOW TO MQTT SERIES ----------------- How To MQTT Series: https://youtube.com/playlist?list=PLGlKxZrcyaVDFqdtvZwfy326rurYZovuO ESP8266 WifiManager: https://youtu.be/VKqr-RDmRpY What is MQTT: https://youtu.be/DAOa4uuYaGQ Raspberry pi as MQTT broker: https://youtu.be/4LnxB_iJ380​ ESP8266 Publish/Subscribe local MQTT broker: https://youtu.be/7gjJfJgi6uE ESP8266 Publish/subscribe to Cloud | MQTT: https://youtu.be/eQvlHKTlYCE Arduino real-time plotting MATLAB: https://youtu.be/hk-RQgofyEw Arduino Real-time plotting PYTHON: https://youtu.be/COhkJwJtWG0 MQTT in MATLAB: https://youtu.be/ptdNuqGuf6E MQTT in Python : https://youtu.be/IQBWMHMTTO8 Real time plotting in PYTHON using MQTT : https://youtu.be/cP2kAaat3bI Android app MQTT: https://youtu.be/WAimZhU5phs #esp32 #mqtt #mqttbroker #internetofthings ----------------------------------------------------------------------------------------------------------------------------------- 📞 Need help with my tutorials? Book a 1:1 call: https://topmate.io/asim_zulfiqar/ -----------------------------------------------------------------------------------------------------------------------------------

Essentials for Your IoT Project

AI-recommended products based on this video

Loading...
10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

(1)
$99.99
FREE delivery Mon, Aug 11
Loading...
ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

(49)
$117.29$102.21
$6.86 delivery Thu, Aug 14
Loading...
7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

(61)
$68.99
FREE delivery Tue, Aug 12
Loading...
BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

(288)
$54.14
FREE delivery Sun, Jun 22
Loading...
TP-Link AC1300 USB WiFi Adapter (Archer T3U) - 2.4G/5G Dual Band Wireless Network Adapter for PC Desktop, MU-MIMO WiFi Dongle, USB 3.0, Supports Windows 11/10/8.1/8/7/XP, Mac OS 10.9-10.14

TP-Link AC1300 USB WiFi Adapter (Archer T3U) - 2.4G/5G Dual Band Wireless Network Adapter for PC Desktop, MU-MIMO WiFi Dongle, USB 3.0, Supports Windows 11/10/8.1/8/7/XP, Mac OS 10.9-10.14

(19,238)
$19.99$15.96
FREE delivery Sun, Jun 22 on your first order
500+ bought in past month
Loading...
TP-Link WiFi 6 AX3000 PCIe WiFi Card Archer TX55E - Bluetooth 5.2, 802.11AX Dual Band Wireless Adapter with MU-MIMO, OFDMA, Ultra-Low Latency, Supports Windows 11, 10 (64bit) only
Best Seller

TP-Link WiFi 6 AX3000 PCIe WiFi Card Archer TX55E - Bluetooth 5.2, 802.11AX Dual Band Wireless Adapter with MU-MIMO, OFDMA, Ultra-Low Latency, Supports Windows 11, 10 (64bit) only

(9,902)
$37.99$34.19
FREE delivery Sun, Jun 22
400+ bought in past month
Loading...
TP-Link AC1300 High Gain WiFi USB Adapter (Archer T4U)- Dual Band Wireless Network Adapter for Desktop with 2.4GHz/5GHz High Gain Antennas, MU-MIMO, Support Windows 10/8.1/8/7/XP, Mac OS

TP-Link AC1300 High Gain WiFi USB Adapter (Archer T4U)- Dual Band Wireless Network Adapter for Desktop with 2.4GHz/5GHz High Gain Antennas, MU-MIMO, Support Windows 10/8.1/8/7/XP, Mac OS

(47,080)
$24.99$21.17
FREE delivery Sun, Jun 22 on your first order
100+ bought in past month
Loading...
TP-Link Mini - AC600 USB 2.0 Wifi Adapter (Archer T2U Nano) - 2.4G/5G Dual Band Wireless Network Adapter for PC Desktop, Mini Travel Size, Supports Windows 11/10/8.1/8/7/XP, Mac OS 10.9-10.15

TP-Link Mini - AC600 USB 2.0 Wifi Adapter (Archer T2U Nano) - 2.4G/5G Dual Band Wireless Network Adapter for PC Desktop, Mini Travel Size, Supports Windows 11/10/8.1/8/7/XP, Mac OS 10.9-10.15

(19,191)
$14.99$13.52
FREE delivery Thu, Sep 4 on your first order
300+ bought in past month
Loading...
BOSGAME Fanless Mini PC,Intel Celeron N4020 4GB DDR4 RAM 64GB eMMC,Micro Desktop Computer Support HDMI&VGA,2.4/5G WiFi,BT5.0,Gigabit Ethernet for Business, Home
Amazon's Choice

BOSGAME Fanless Mini PC,Intel Celeron N4020 4GB DDR4 RAM 64GB eMMC,Micro Desktop Computer Support HDMI&VGA,2.4/5G WiFi,BT5.0,Gigabit Ethernet for Business, Home

(117)
$89.00
FREE delivery Sun, Aug 10
Loading...
BOSGAME E2 Mini PC AMD Ryzen 5 3550H, 16GB DDR4 RAM 512GB SSD, Mini Desktop Computer Support 4K Dual HDMI Display/WiFi5/BT5/Gigabit Ethernet for Home/Office

BOSGAME E2 Mini PC AMD Ryzen 5 3550H, 16GB DDR4 RAM 512GB SSD, Mini Desktop Computer Support 4K Dual HDMI Display/WiFi5/BT5/Gigabit Ethernet for Home/Office

(79)
$236.00
FREE delivery Sun, Aug 10
Loading...
Fodenntech Mini PC, Intel 12th Gen Alder Lake - N100 (up to 3.4GHz), 16GB RAM 512GB SSD Mini Computers, Desktop Computers Support 4K Dual HD/WiFi 6/BT5.2/Gigabit Ethernet for Business, Home

Fodenntech Mini PC, Intel 12th Gen Alder Lake - N100 (up to 3.4GHz), 16GB RAM 512GB SSD Mini Computers, Desktop Computers Support 4K Dual HD/WiFi 6/BT5.2/Gigabit Ethernet for Business, Home

(67)
$199.99
FREE delivery Mon, Aug 11
Loading...
Laptop Docking Station, Docking Station 3 Monitors with 2*DP+HDMI, 130W PD Charger, 4*USB 3.0, Audio, Gigabit Ethernet, TF/SD for Lenovo HP Dell, Windows,Mac

Laptop Docking Station, Docking Station 3 Monitors with 2*DP+HDMI, 130W PD Charger, 4*USB 3.0, Audio, Gigabit Ethernet, TF/SD for Lenovo HP Dell, Windows,Mac

(55)
$127.99
FREE delivery Sun, Aug 24
Loading...
2 Pack Controller Battery Pack Rechargeable for Xbox One/Xbox Series X|S with 4 Battery Cover Xbox Play and Charge Kit with Micro USB Charging Cable for Xbox One S/X/Elite Controller

2 Pack Controller Battery Pack Rechargeable for Xbox One/Xbox Series X|S with 4 Battery Cover Xbox Play and Charge Kit with Micro USB Charging Cable for Xbox One S/X/Elite Controller

(355)
$36.99
FREE delivery Sun, Aug 24
Loading...
2 Pack Rechargeable Controller Battery Pack for Xbox Series X|S and Xbox One with 10FT USB C Charging Cable and Micro USB Adapter 6amLifestyle Battery Pack Xbox Play and Charge Kit

2 Pack Rechargeable Controller Battery Pack for Xbox Series X|S and Xbox One with 10FT USB C Charging Cable and Micro USB Adapter 6amLifestyle Battery Pack Xbox Play and Charge Kit

(4,379)
$34.99
FREE delivery Sun, Jun 15 on your first order
Loading...
Multi Charging Cable, Multi Charger Cable 3 in 1 Charger Fast Charge Multiple Ends 4FT Braided Universal Charging Cord with USB C Micro Lightning Cord for iPhone iPad Samsung Android Phone Tablet Global Recycled Standard

Multi Charging Cable, Multi Charger Cable 3 in 1 Charger Fast Charge Multiple Ends 4FT Braided Universal Charging Cord with USB C Micro Lightning Cord for iPhone iPad Samsung Android Phone Tablet Global Recycled Standard

(41)
$8.99
FREE delivery Sun, Oct 5 on your first order
600+ bought in past month