How to use MQTT in Node-Red: basics, examples, tip & tricks

Csongor Varga January 7, 2023
Video Thumbnail
Csongor Varga Logo

Csongor Varga

View Channel

About

Home automation, Node-Red, Influxdb, Grafana, Model railways, electronics, DIY and work related stuff

Video Description

Want to learn how to communicate with MQTT in Node-Red? Here you can learn how to connect to an MQTT broker, subscribe to topic, send data to the server, handle different data types, use dynamic subscription and other tips and tricks. By the end of this tutorial, you'll be able to send and subscribe to MQTT messages with ease! MQTT is a powerful messaging platform that can be used to control devices and machines remotely. In this tutorial, we'll be using Node-Red to send and receive MQTT messages. By the end of this tutorial, you'll be able to use MQTT to control your Node-Red projects! Sensor toolbox video: https://youtu.be/UotFHkIXpnU If you like what I do here, you can support me with Youtube Thanks, or Patreon: https://patreon.com/csongorvarga Chapter: 0:00 Intro 0:07 Chapters 1:56 Prerequisite 2:54 Connect to an MQTT broker 5:37 Subscribe to a topic 8:11 Sending MQTT messages 10:04 MQTT Explorer 11:36 Door sensor example 13:46 Timer switch example 14:56 Data types 20:45 Dynamic subscription 25:20 Toolbox examples 28:09 Recap

You May Also Like

Empower Your IoT Projects

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...
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...
Kasa Smart Outdoor Smart Plug by TP-Link (KP400) - Smart WiFi Outlet with 2 Sockets, IP64 Waterproof, Works with Alexa and Google Home, 2.4GHz WiFi Required, No Hub Required, Sunset & Sunrise Offset

Kasa Smart Outdoor Smart Plug by TP-Link (KP400) - Smart WiFi Outlet with 2 Sockets, IP64 Waterproof, Works with Alexa and Google Home, 2.4GHz WiFi Required, No Hub Required, Sunset & Sunrise Offset

(28,846)
$21.99$17.99
FREE delivery Wed, Aug 20 on your first order
1K+ bought in past month
Loading...
Portable Monitor 14-Inch 2K USB C HDMI Gaming Ultra-Slim IPS Display With Smart Cover & Speakers, 2160x1440P Screen for Laptop, HDR Plug&Play, External Monitor for PC Phone Mac Xbox

Portable Monitor 14-Inch 2K USB C HDMI Gaming Ultra-Slim IPS Display With Smart Cover & Speakers, 2160x1440P Screen for Laptop, HDR Plug&Play, External Monitor for PC Phone Mac Xbox

(175)
$163.49$107.21
FREE delivery Mon, Aug 11
Loading...
24 Inch Portable Monitor, Smart Touch Screen TV with Built in Battery, High Definition LCD Screen, Floor Standing Display Screen for Home (US Plug)

24 Inch Portable Monitor, Smart Touch Screen TV with Built in Battery, High Definition LCD Screen, Floor Standing Display Screen for Home (US Plug)

(0)
$872.67
FREE delivery Aug 21 - Sep 3
Loading...
TP-Link AV1000 Powerline Ethernet Adapter(TL-PA7017P KIT) - Gigabit Port, Plug and Play, Extra Power Socket for Additional Devices, Ideal for Smart TV

TP-Link AV1000 Powerline Ethernet Adapter(TL-PA7017P KIT) - Gigabit Port, Plug and Play, Extra Power Socket for Additional Devices, Ideal for Smart TV

(17,610)
$64.99$51.48
PrimeFREE delivery Sat, Jun 14
100+ bought in past month