good morning sir thank you i come from durga software with mr rakesh. Kreshna bless youre soull.
@brijusingh8459 ай бұрын
Really... Brilliant.. please deliver your all experience and knowledge like that... Thanks a lot .. god bless you 🙏
@BINARYUPDATES9 ай бұрын
Hi Briju, Thanks a lot! I'll be making more videos on MQTT and other IOT topics in days to come. Best wishes!
@hicmikrolab2 жыл бұрын
Very direct and easy to understand. Thank you
@BINARYUPDATES2 жыл бұрын
Hi Ibrahim Glad it was helpful! Thank you!
@Cptnbond Жыл бұрын
Your episode managed to cram in so much helpful information in just 20 minutes; congrats, and I subscribed. Cheers.
@BINARYUPDATES Жыл бұрын
Hi Cptnbond, Awesome, thank you! I hope you enjoyed this MQTT with ESP8266 Tutorial. Have a good day. Best wishes!
@ravindrachaudhari7467 Жыл бұрын
highly informative, Great ! explained precisely and very accurately
@BINARYUPDATES Жыл бұрын
Thank you Ravindra! I hope you enjoyed this video. Good luck and best wishes!
@llc68492 жыл бұрын
Very nicely explained video and u got a great explaining capability. I have one question. We cannot hard code the wifi ssid and password in commercial products as it will depend on user to user. What is the best way to parameterized it and other required credentials in a USER FRIENDLY MANNER so that it can be set easily by users.
@BINARYUPDATES2 жыл бұрын
Thank you very much for your kind words. Now coming back to your question. I understand writing WiFi credentials in code is not good practice while building product. So you can use internal memory of ESP8266 Microcontroller and via webserver you can let user to change WiFi credentials as and when needed. This is exact mechanism is used even in our internet router. I hope this answers your question. Thanks again!
@rammehta98822 жыл бұрын
Thank you sir, can help us how to set last will in esp8266 by using pubs list linrary
@BINARYUPDATES2 жыл бұрын
Hi Ram, you can do this by setting QoS which means Quality of Service when using Publish and Subscribe function of MQTT Library in ESP8266 Code. I hope this may help you. I'll consider making dedicated video on similar topic in future. Thanks for your input.
@faizsuhaimi1311 күн бұрын
hi, is it the same way to setup with esp32 sim800L?
@ismail_aydemir_youtube Жыл бұрын
mrhaba. mqtt denilen şey aynen thingspeak gibi bir sunucu olayı mıdır? verileri buraya gönder depola ve tekrar uzak bir noktaya aktarma işlemimi yapıyor? Yani kendi sunucumuzda yapsa idik buna gerek var mıdır? pek anlayamadım
@MrBobWareham Жыл бұрын
Very good video, thanks for your time and instructions.
@BINARYUPDATES Жыл бұрын
Hi Mr. Bob, thank you! I'm glad that you found this ESP3266 MQTT tutorial useful. Wish you a beautiful day!
@MrBobWareham2 ай бұрын
@@BINARYUPDATES I loved the video, but with no disrespect you pronounce it MOSKEETO the Q is silent, all the best Bob
@educationanalysis-ashushar19772 жыл бұрын
Sir it's really amazing and very easy to understand Thanks sir for our help
@BINARYUPDATES2 жыл бұрын
Thanks! I hope you learned how to use MQTT on ESP8266 NodeMCU. I'll be making more advance videos on the same topics.
@saiswaroopnagavolu19583 ай бұрын
I'm not getting com4 at port . I have only got com9 and com10 but when I connect to circuit, I'm getting extra port com13. But nothing of them is working. Any solution?
@llc68492 жыл бұрын
What exactly happens at line 11, where this is written. PubSubClient client(espClient); Is this some sort of short code to declare and initialize a variable? Is that line equivalent to PubSubClient client = new PubSubClient(espClient);
@BINARYUPDATES2 жыл бұрын
Yes, There we've made an object named "client" using class defined in PubSubClient library header file in Arduino code of NodeMCU ESP8266. Please note that this line made NodeMCU as an MQTT client to connect to Server. I hope this may help you. Good luck and best wishes!
@SuperNathanTube2 ай бұрын
A bit fast narration .. but in the end you managed to show the real world use by linking the cell phone to the board. Good.
@djokinac11 ай бұрын
Hello i tried this from this video and everything works great compliments but I hope you can help me in one of my problems I have an esp8266 with tasmota software and it works with the pir sensor and turns on the light on the terrace is it possible to connect it to this mqtt and have info on the phone or maybe on the alexa application thank you in advance and greetings from Serbia
@MuadKM11 Жыл бұрын
when i install the MQTTlens it says (mqttlens is no longer supported ).BTW i have the latest version of google chrome i need help with that
@BINARYUPDATES Жыл бұрын
Hi Muaadmami, MQTTLens is no longer maintained by its developer. So you can't download anymore in chrome. Please check my "MQTT Explorer" Client video on BinaryUpdates channel. It's good alternative. I'll be using it in my future MQTT video lessons. I hope you'll find my MQTT Explorer video on channel. Good luck and best wishes!
@midhulpk4159 Жыл бұрын
sir, is possible to show sensor values in more phones using mymqtt app.
@BINARYUPDATES Жыл бұрын
Hi Midhul, yes its possible as MQTT server will be public any number of mobile can able to connect and show sensor data. Good luck and best wishes!
@johnnysandkly78992 ай бұрын
good explained tutorial keep going
@deeksha30162 жыл бұрын
very useful and beautiful
@KAMALZINZUVADIYA Жыл бұрын
hello sir, i want to do the same with use of gsm sim800c module without using esp8266.
@BINARYUPDATES Жыл бұрын
Hi Kamal, It can be done. You need to use MQTT protocol with SIM800C GSM Module. Good luck and best wishes!
@Ss-re2zn Жыл бұрын
I have been trying to connect my nodemcu esp8266 using blynk app.but my device is always showing offline?what can I do?
@mygallery2u Жыл бұрын
Thanks for this amazing video. Its very helpful
@BINARYUPDATES Жыл бұрын
Hi Treesa, Glad it was helpful! Best wishes!
@manimanjari9995 Жыл бұрын
Can u share the separate screenshot of mobile while publishing
@athallahyaristyan19328 ай бұрын
is this will work also with esp32 and can i intergrate this with my personal android app dev?
@michaelmcdermott3802 Жыл бұрын
brilliant video...already subscribed
@BINARYUPDATES Жыл бұрын
Awesome, thank you Michael!
@batir8968 Жыл бұрын
Hello . great video. wanted to repeat to study. I'm connected to Wi-Fi. but does not connect to the MQTT broker. Although I connect to this broker from a computer and from a phone. I subscribe to topics and the computer communicates with the phone. esp8266 not connecting to mqtt broker
@BINARYUPDATES Жыл бұрын
Hi Batir, thank you! as per your comment. I feel MQTT server is fine as it is working with with mobile app and computer. I guess the issue is seems to be with ESP8266 NodeMCU is not connecting to WiFi for some reason. I think please re confirm you've not made any spelling mistake while writing ssid and password in your Arduino program that uploaded on ESP8266. I hope this may help you somehow. Good luck and best wishes!
@debabratabej3261 Жыл бұрын
Can you please make a video on publishing analog sensor data to Thingspeak using MQTT protocol and ESP8266?
@BINARYUPDATES Жыл бұрын
Sure, we'll make dedicated video to publish analog sensor data to publish over MQTT protocol with ESP8266 NodeMCU. Thanks for your suggestions. Good day!
@debabratabej3261 Жыл бұрын
@@BINARYUPDATES Thank you.
@muhammadfathanhidayat9639 Жыл бұрын
sorry but it seems chrome can't use mqtt lens anymore because it doesn't support old version anymore.
@BINARYUPDATES Жыл бұрын
Hi Muhammad, please check my latest MQTT Explorer tutorial. Search MQTT Explorer BinaryUpdates and you'll find it on my channel. As MQTT Lens is no longer maintained by its publisher so chrome doesn't support anymore. I hope my new video will find helpful to you. Good luck and best wishes!
@nityodaytekchandani701 Жыл бұрын
Thank you!
@BINARYUPDATES Жыл бұрын
You're welcome!
@struggwar Жыл бұрын
Very informative. Really helpful. Just want to know that do one has to sign up for mosquitto server and is it a paid service?
@BINARYUPDATES Жыл бұрын
Hi, the basic MQTT server by mosquitto is free to use and no need to signup. But its possible there maybe some services could be paid. I usually use and deploy my own MQTT server for commercial projects. I hope this answer can help you. Good luck and best wishes!
@jolexx2 жыл бұрын
Thank you. How to add username/password autentication for Mosquitto server login ?
@kimberlyopinaldo7257 Жыл бұрын
led input connected to which esp8266 pin
@BINARYUPDATES Жыл бұрын
Hi Kimberly The LED is connected to GPIO2 Pin which is D4 Pin on NodeMCU ESP8266. Usually, all board comes with built-in led connected to NodeMCU on the same pin. I hope this may help you Good luck and best wishes!
@iotprojecthindi Жыл бұрын
Hello sir I am planning to develop a home automation system for my college project, which I also intend to implement in my own home. The system involves connecting multiple relays and sensors, and I have chosen to use NodeMCU devices for this purpose. Each NodeMCU board will contain several relays and sensors. To overcome the limited range of the router's signal, I have established a mesh network of NodeMCU devices, with each device connected to the router. Additionally, I plan to utilize the Home Assistant operating system to control the relays. To program the NodeMCU devices, I have opted for Node-RED, and for storing the sensor values and relay statuses, I have selected InfluxDB as the database. Furthermore, I plan to use Grafana as a data visualization tool to create an attractive dashboard for the system. In this home automation system, I aim to incorporate the following features: 1. Manual Control: If the home automation system fails, I want the system to function as normal, allowing manual control over the electric appliances. 2. App Control: I want to implement an application-based control system, enabling users to control the system and its connected devices remotely through a mobile app. 3. Automation of Electric Appliances: I intend to automate the operation of various electric appliances, such as lights, fans, and other devices, based on predefined schedules, triggers, or user preferences. Now, I have a couple of questions regarding the implementation of this system: 1. How can I effectively utilize the mesh network of NodeMCU devices to control all the relays and read sensor values? I would appreciate insights on managing communication and synchronization within the mesh network. 2. I would like to implement MQTT protocol in my home automation system. Could you provide guidance on integrating MQTT effectively, ensuring reliable communication and message exchange between the devices within the network? Thank you
@ishvananthan4382 Жыл бұрын
this is so detailed u could honestly just ask gpt Your project sounds ambitious and well thought-out. I'll try to provide insights on both of your questions: ### 1. Utilizing the Mesh Network: Using a mesh network for NodeMCU devices can greatly expand the range and reliability of your home automation system. Here's how you can effectively utilize it: - **Central Node**: Designate one NodeMCU as the central node (often referred to as the master node). This node will be the primary communication point with the Home Assistant operating system and any other external systems. - **Message Protocol**: Implement a standardized message protocol. This should define messages for controlling relays, reading sensor values, health checks, etc. Each message should have a unique identifier, source and destination addresses, action type, and any associated parameters. - **Routing and Addressing**: Ensure that each NodeMCU in the mesh has a unique address. The central node should maintain a routing table that keeps track of the best path to each NodeMCU in the network. - **Health Checks and Redundancy**: Implement regular health check messages to ensure each node is functional. If a node fails to respond, the central node should attempt to find an alternative route to it through the mesh. - **Data Aggregation**: Since you're planning to store sensor values in InfluxDB, consider sending aggregated sensor values at regular intervals (e.g., every minute) instead of real-time updates to reduce network traffic and database writes. ### 2. Integrating MQTT: MQTT is a lightweight messaging protocol designed for low-bandwidth, high-latency, or unreliable networks. Here's how you can integrate it: - **Broker**: Use an MQTT broker like Mosquitto. This will act as the central hub for all MQTT communications. Install it on a server or a Raspberry Pi. - **Topic Structure**: Use a well-defined topic structure. For example: `home/room1/light`, `home/room2/fan`, etc. Use sub-topics for commands (`set`) and state (`status`), e.g., `home/room1/light/set` and `home/room1/light/status`. - **Publishing & Subscribing**: - NodeMCU devices should subscribe to the relevant command topics (e.g., `home/room1/light/set`) to listen for relay control messages. - They should publish sensor readings and relay statuses to their respective status topics (e.g., `home/room1/light/status`). - **QoS Levels**: MQTT has different Quality of Service (QoS) levels. For critical commands, consider using QoS level 1 (message is delivered at least once) or 2 (message is delivered exactly once). - **Retained Messages**: Use the "retain" feature of MQTT for the status topics. This ensures that the last known state of each device is always available to new subscribers or after a disconnection. - **Integrate with Home Assistant**: Home Assistant has built-in support for MQTT. You can define MQTT entities in Home Assistant, and it will automatically subscribe to the relevant topics and control devices accordingly. - **Secure the Communication**: Ensure to enable authentication on your MQTT broker. Consider using SSL/TLS to encrypt the communication between the broker and the clients. - **Feedback Loop**: When a command is sent to a NodeMCU device to change the state of a relay (like turning a light on), the NodeMCU should acknowledge the receipt of this command by updating the status topic. This ensures synchronization between the control interface and the actual state of the devices. Remember to test each component of your system in isolation before integrating everything. This will help you pinpoint issues more easily. Good luck with your project!
@dashinkumar1417 Жыл бұрын
Sir I have one doubt MQTT server how to activate by using Android mobile
@BINARYUPDATES Жыл бұрын
Hi Dashinkumar, this MQTT server used in example project in public and free to use. So no need to activate. You just have to configure MQTT Client like MQTTExplorer or MQMQTT App with server as shown in video. If server and port information is correct then client means Mobile/Desktop App will connect to MQTT server. I hope this may help. Good luck and best wishes!
@hectoreduardomartinramos3306 Жыл бұрын
i love youuuuuuuuuu from mexico
@joamarticorena90182 жыл бұрын
Can hoy publish a message to the NodeMCU being in a Wifi different to the Wifi that is connected the NodeMCU?
@BINARYUPDATES2 жыл бұрын
Yes, its possible because the MQTT server used in this example is Public MQTT Server.
@gaganpydi742710 ай бұрын
hello sir, I have a doubt, should the mobile be connected to the same network as esp32(as ssid and password mentioned in code)
@BINARYUPDATES9 ай бұрын
It's not necessary to have Mobile and ESP32 to be in the same network. Since the MQTT server is public server you can control from any mobile other mobile connected with any other network.
@jeevanj84919 ай бұрын
i can't download mqtt lens,it says chrome os can only download . How i going to download mqttlens.
@BINARYUPDATES9 ай бұрын
Hi Jeevan, MQTTLens no longer available. So I recommend using MQTTExplorer insted of it. I have a dedicated video on how to use MQTTExplorer to publish and subscribe MQTT messages. I hope you'll find the video on our channel. Good luck and best wishes!
@jeevanj84919 ай бұрын
@@BINARYUPDATES yes i saw that video.
@hediggondamath Жыл бұрын
hi sir presently mqttlens broker is not supported by google chrome, Please explain the alternative way to use test.mosquitto broker with nodemcu
@BINARYUPDATES Жыл бұрын
Hi, Please watch my "MQTTExplorer" video lesson which I've published last month on my channel. MQTTExplorer is very good alternative to obsolete MQTTLens. I hope this may help you. Good luck and best wishes!
@hediggondamath Жыл бұрын
Thank you very much for quick reply sir, but please make a video on how to use with nodemcu, thank you once again
@sehanlakpriya63622 жыл бұрын
How to control more led out puts
@BINARYUPDATES2 жыл бұрын
Hi Sehan, To control multiple LEDs, we need to add more MQTT Topics and Payloads to control individual devices. I'll consider making similar video in future. Thanks!
@sehanlakpriya63622 жыл бұрын
@@BINARYUPDATES thanks it will be very important video
@deekhith77 Жыл бұрын
Sir the MQTT lens is not launching
@BINARYUPDATES Жыл бұрын
Hi Deekhit, I'd suggest to use "MQTT Explorer" instead of "MQTTLens". I just have made video on how to publish and subscribe MQTT messages using MQTT Explorer. Unfortunately, MQTTLens no longer provide update or support. So, it's advisable to migrate or use MQTT Explorer. Just check video on BinaryUpdates channel. I hope you'll find this useful. Good luck and Best wishes!
@ivanalgedi52 жыл бұрын
Does this works in a ESP32??
@BINARYUPDATES2 жыл бұрын
Yes, you can use MQTT Protocol with ESP32
@syedfarhanofficial072 жыл бұрын
Temperature sensor input connected to which esp8266 pin
@BINARYUPDATES2 жыл бұрын
Hi Syed, temperature sensor LM35 input is connected to A0 Pin which is Analog Pin of ESp8266 NodeMCU. Best Wishes!
@bhupendersingh2604 Жыл бұрын
Really amazing demonstration Can you suggest iot project for final year students
@BINARYUPDATES Жыл бұрын
Hi Bhupender, consider smart home automation. where you can use protocols like MQTT, Zigbee etc. And also most common NodeMCU ESP8266 good choice to keep things simple in project. I wish you good luck and best wishes!
@segarsockalingam8526 Жыл бұрын
Hi first of all very good tutorial can u help me how to wake esp8266 from deep sleep with mqtt publish. My esp wakes up every 30min for 30sec and goes to sleep .How to send a mqtt topic to wake it up. Thanks
@BINARYUPDATES Жыл бұрын
Hi Segar, you need to explore deep sleep mode of ESP32 Microcontroller. I'll surely consider making video in future. Thanks and best wishes!
@Donny_DL Жыл бұрын
Attempting MQTT connection...failed, what can I do?
@BINARYUPDATES Жыл бұрын
If you're using MQTT Servers IP address same as in video then please replace that IP address with "test.mosquitto.org". This is because the IP address has been changed for the server. Good luck and best wishes!
@Donny_DL Жыл бұрын
@@BINARYUPDATES ok, and for having my personal server what do I do?
@masterslab5987 Жыл бұрын
Excelent video! Very well explained!
@BINARYUPDATES Жыл бұрын
Glad it was helpful!
@clobel557 ай бұрын
maybe for you if you are Indians, but honestly this guy's English is very difficult to understand
@michaelumeokoli10 ай бұрын
Mine doesn't connect, I receive a -4 status code.
@BINARYUPDATES10 ай бұрын
Please try with "test.mosquitto.org" instead of IP address number in Arduino Code and MQTT Client Application.
@piyachonsunsanee60482 жыл бұрын
what sensor is that? thanks for very good content.
@piyachonsunsanee60482 жыл бұрын
DS18B20? wondering it can work without R pull up?
@BINARYUPDATES2 жыл бұрын
Its LM35 analog temperature sensor from Texas Instruments been used with NodeMCU ESP8266 for MQTT Example project.
@SG-ut5ue3 ай бұрын
Excellent
@syaduinotech36812 жыл бұрын
Sir, thanks for your video, can you share video on the MQTT with the security, username and password for MQTT broker
@BINARYUPDATES2 жыл бұрын
If in case its not working put "test.mosquitto.org" in place of IP address in Arduino code as well as MQTT Client like MQTTLens and Mobile App. As the broker/server is free sometimes they may change ip address every now and then...Let me know if it solve the issue. Good luck and best wishes!
@JKD3572 жыл бұрын
hi, could you share the wifi8266 Arduino source codes? thks.
@BINARYUPDATES2 жыл бұрын
Hi I used the code provided from MQTT example project of ESP8266 Arduino library. You can do open project file as like I've shown in video lesson. Thanks
@ineselloumi8729 Жыл бұрын
thank you
@BINARYUPDATES Жыл бұрын
You're welcome
@JKD3572 жыл бұрын
You 5.xx ip is your server ip address ?
@BINARYUPDATES2 жыл бұрын
Yes, sometimes MQTT server IP address may change by free host. So please consider replace all IP address with "test.mosquitto.org" URL which will point to correct MQTT Server. That 5.xx was address while making this video. I hope this may help. Good luck and best wishes!
@daqasovip2 жыл бұрын
raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error)) esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header Failed uploading: uploading error: exit status 1
@BINARYUPDATES2 жыл бұрын
Hi Duan, close Arduino IDE and try to reupload the code. It seems an issue with Arduino IDE. This happens sometimes when libraries fail to link properly while compiling and uploading the sketch in ESP8266. I hope you find useful. Good luck and best wishes!
@shivprakashyadav6906 Жыл бұрын
Beautiful
@BINARYUPDATES Жыл бұрын
Thank you Shivprakash!
@jilljessurun28972 жыл бұрын
mqtt fails to connect :(
@BINARYUPDATES2 жыл бұрын
Sometime MQTT Server changes IP address of server. You can ping "test.mosquitto.org" through your command prompt and make sure IP address of MQTT server and then try. Let me know what IP address you're trying.....
@vatsalsheth12292 жыл бұрын
if u solve the problem pls tell me how did u do?
@duragappaagalikar59052 жыл бұрын
Where is code plzz send 👈
@BINARYUPDATES Жыл бұрын
Hi Durgappa, the MQTT code is provided in the description. There is an GitHub link where you can download. I hope it can help.
@TheUnofficialMaker2 жыл бұрын
well done.
@deeksha30162 жыл бұрын
very nicwe
@hediggondamath2 жыл бұрын
nice video
@BINARYUPDATES2 жыл бұрын
Thanks for the visit
@Latheeshofficial004 Жыл бұрын
Hello sir !circuit diagram send sir❤
@BINARYUPDATES Жыл бұрын
Hi Latheesh, the NodeMCU ESP8266 connection details are shared in GitHub repository shared in the description section. You'll find everything from MQTT example program to connection diagram. Good luck and best wishes!
@ACL1456 ай бұрын
Can you help me. please sir Reply me
@RandomakerYT Жыл бұрын
And now the world knows your wifi password. Not the best idea to put that in your video.
@Prince_of_X Жыл бұрын
😂 getting free internet from a wifi 100s of km away 😂