ESP8266 (NodeMcu) Raspberry Pi MQTT | ESP8266 Publish/Subscribe

preview_player
Показать описание
This is the 3rd video of How to MQTT series. In this video, we will learn how to subscribe and publish MQTT messages using ESP8266 (NodeMcu). We will use the Raspberry pi as Local mosquitto MQTT broker which we created in the last video.

We will read the temperature and humidity values from a DHT11 sensor using Nodemcu and publish it on topic "data", raspberry pi will subscribe to that topic and receive that data. So this can also be considered as "Raspberry pi Esp8266 Wireless communication" or "NodeMcu Raspberry pi IoT".

Watch How to use ESP8266 with MQTT broker on a cloud.

Amazon and Banggood Purchase links:
*****************

Buy anything from amazon

Buy Arduino UNO R3

Arduino starter kit with book

Raspberry pi

Browse Arduino products

Esp8266 boards

Arduino many in 1 sensor kit

RFID module

Bangood

UNOR3 Basic Starter Kits

Arduino 37 in 1 sensor modules

MFRC522 RFID Reader

Arduino Mega kit (19 % off)

Basic Electronic kit

RFID starter kits V2

Nodemcu ESP8266

DISCLAIMER: This video and description contain affiliate links, which means that if you click on one of the product links, I will receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for your support!
****************

For More Projects and Tutorials visit our Website:

Follow us on Facebook

For business enquires and sponsorships, email me

For Arduino, Raspberry Pi, IoT, and programming projects check my Fiverr profile,

Video Tags:
ESP8266
Raspberry pi
MQTT
How to MQTT
How to esp8266 MQTT
Nodemcu
esp8266 publishing dht22 readings with mqtt to raspberry pi
esp8266 mqtt client
esp8266 mqtt tutorial
esp8266 mqtt example
esp8266 dht11 mqtt
esp8266 dht11 mqtt home assistant
nodemcu mqtt client
nodemcu mqtt home assistant
esp8266 raspberry pi wireless communication
esp8266 iot tutorial
esp8266 iot projects
esp8266 talking to raspberry pi
internet of things

#ESP8266 #RaspberryPI #MQTT #HowtoMQTT ---------------------------------------------------------------------------

BUY ELECTRONICS COMPONENTS FROM INDIA'S BEST DIY STORE

-~-~~-~~~-~~-~-
Please watch: "How to Set Up Wokwi for IoT Simulation in VS Code with PlatformIO"
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

Watch How to use ESP8266 with MQTT broker on a cloud.

HighVoltages
Автор

You already know youre getting the best when the indish accent starts.

christophdittmer
Автор

Some comments say the music is distracting but I think its fine. Instead you should get a better microphone to hear your voice clearer over the music. Great video!

ZersoLP
Автор

Your videos are top notch.. keep it up

kunalbiz
Автор

You have a very strong accent, to an American, and the background music is just a little too loud. Together it makes listening very hard.

chrisw
Автор

Sir,
How to send one digital input and receive one digital output? Say, we have two esp8266 through adafruit broker. One esp digital input will make another esp digital output high and vice versa. Please help me out.

abhirupbera
Автор

so esp8266 don't have to connect to WIFI?

someonecooltech
Автор

What is the fastest speed of communication? That is how many values per second can be transmitted?

JKFCV
Автор

is there a tuto of how to link the node mcu or the gateway with cloud

mommypotatottv
Автор

Hi, is there a way to publish to MQTT with retained flag active from this MCU?

Joshrp
Автор

What do need to do, if the Raspberry pi and the esp32 arr not on the same wifi? In other words, how subscribe Mqtt Messages over internet? Thank you for the video!

baseladams
Автор

I’m using DS18b20 sensor on D2 (only pin that seems to work) & 128X32 i2c OLED to display Current temp on D1&D2. Can you assist with code? I can get each to work independently but not together. Great videos!

bradlevan
Автор

the portal config won't open ! some one help me plz !

wajdibrahem
Автор

Very interesting.
It's not clear to me, why we need background music?
This is very disturbing to me, and I'm sure many more people,
Too bad.

moshebensal
Автор

Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"





















Multiple libraries were found for "ESP8266WiFi.h"

Used:
Not used:
In file included from
fatal error: wl_definitions.h: No such file or directory

#include <wl_definitions.h>

^

compilation terminated.

exit status 1

Error compiling for board Generic ESP8266 Module.



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.



i am getting these errors please help me sir

tejaranganath
Автор

hi, ican u help me ?

my esp8266 dont reconnect to mqtt broker ( on node red raspberry pi ) after when the pi reboot .

dsdridi
Автор

Can we connect our local pi network to firebase to publish data?

hayafatime
Автор

Raspberry pi send data to nodemcu via local or globall

kuldipgami
Автор

Bro can read flow sensor Data using esp8266 raspberry pi

ennaiarindhal
Автор

background music is too laud and pointless we cannot even hear you

SepahEMahdi