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.
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!
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?
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
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
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.
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!
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
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!
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);
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!
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
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!
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!
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!
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!
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.
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!
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!
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!
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!
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
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!
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!
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!
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!
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
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!
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
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.....
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!
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!
good morning sir thank you i come from durga software with mr rakesh. Kreshna bless youre soull.
Really... Brilliant.. please deliver your all experience and knowledge like that... Thanks a lot .. god bless you 🙏
Hi Briju, Thanks a lot! I'll be making more videos on MQTT and other IOT topics in days to come. Best wishes!
Clear, concise and helpful.
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.
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!
Very direct and easy to understand. Thank you
Hi Ibrahim
Glad it was helpful!
Thank you!
highly informative, Great ! explained precisely and very accurately
Thank you Ravindra! I hope you enjoyed this video. Good luck and best wishes!
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.
Your episode managed to cram in so much helpful information in just 20 minutes; congrats, and I subscribed. Cheers.
Hi Cptnbond, Awesome, thank you! I hope you enjoyed this MQTT with ESP8266 Tutorial. Have a good day. Best wishes!
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?
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
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
I have been trying to connect my nodemcu esp8266 using blynk app.but my device is always showing offline?what can I do?
Thank you sir, can help us how to set last will in esp8266 by using pubs list linrary
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.
sir, is possible to show sensor values in more phones using mymqtt app.
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!
Very good video, thanks for your time and instructions.
Hi Mr. Bob, thank you! I'm glad that you found this ESP3266 MQTT tutorial useful. Wish you a beautiful day!
@@BINARYUPDATES I loved the video, but with no disrespect you pronounce it MOSKEETO the Q is silent, all the best Bob
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
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!
Can u share the separate screenshot of mobile while publishing
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
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!
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);
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!
hello sir, i want to do the same with use of gsm sim800c module without using esp8266.
Hi Kamal, It can be done. You need to use MQTT protocol with SIM800C GSM Module. Good luck and best wishes!
good explained tutorial keep going
is this will work also with esp32 and can i intergrate this with my personal android app dev?
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
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!
very useful and beautiful
Sir it's really amazing and very easy to understand
Thanks sir for our help
Thanks! I hope you learned how to use MQTT on ESP8266 NodeMCU. I'll be making more advance videos on the same topics.
Can you please make a video on publishing analog sensor data to Thingspeak using MQTT protocol and ESP8266?
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!
@@BINARYUPDATES Thank you.
Very informative. Really helpful. Just want to know that do one has to sign up for mosquitto server and is it a paid service?
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!
brilliant video...already subscribed
Awesome, thank you Michael!
led input connected to which esp8266 pin
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!
Thank you!
You're welcome!
Can hoy publish a message to the NodeMCU being in a Wifi different to the Wifi that is connected the NodeMCU?
Yes, its possible because the MQTT server used in this example is Public MQTT Server.
hello sir, I have a doubt, should the mobile be connected to the same network as esp32(as ssid and password mentioned in code)
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.
Sir I have one doubt MQTT server how to activate by using Android mobile
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!
Thank you. How to add username/password autentication for Mosquitto server login ?
Thanks for this amazing video. Its very helpful
Hi Treesa,
Glad it was helpful!
Best wishes!
hi sir presently mqttlens broker is not supported by google chrome, Please explain the alternative way to use test.mosquitto broker with nodemcu
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!
Thank you very much for quick reply sir, but please make a video on how to use with nodemcu, thank you once again
sorry but it seems chrome can't use mqtt lens anymore because it doesn't support old version anymore.
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!
Really amazing demonstration
Can you suggest iot project for final year students
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!
Does this works in a ESP32??
Yes, you can use MQTT Protocol with ESP32
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
Hi Segar, you need to explore deep sleep mode of ESP32 Microcontroller. I'll surely consider making video in future. Thanks and best wishes!
i can't download mqtt lens,it says chrome os can only download . How i going to download mqttlens.
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!
@@BINARYUPDATES yes i saw that video.
i love youuuuuuuuuu from mexico
Temperature sensor input connected to which esp8266 pin
Hi Syed, temperature sensor LM35 input is connected to A0 Pin which is Analog Pin of ESp8266 NodeMCU.
Best Wishes!
How to control more led out puts
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!
@@BINARYUPDATES thanks it will be very important video
Attempting MQTT connection...failed, what can I do?
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!
@@BINARYUPDATES ok, and for having my personal server what do I do?
Sir the MQTT lens is not launching
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!
what sensor is that?
thanks for very good content.
DS18B20? wondering it can work without R pull up?
Its LM35 analog temperature sensor from Texas Instruments been used with NodeMCU ESP8266 for MQTT Example project.
Excelent video! Very well explained!
Glad it was helpful!
maybe for you if you are Indians, but honestly this guy's English is very difficult to understand
Excellent
Mine doesn't connect, I receive a -4 status code.
Please try with "test.mosquitto.org" instead of IP address number in Arduino Code and MQTT Client Application.
thank you
You're welcome
Beautiful
Thank you Shivprakash!
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
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!
very nicwe
hi, could you share the wifi8266 Arduino source codes? thks.
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
well done.
nice video
Thanks for the visit
Can you help me. please sir
Reply me
mqtt fails to connect :(
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.....
if u solve the problem pls tell me how did u do?
Where is code plzz send 👈
Hi Durgappa, the MQTT code is provided in the description. There is an GitHub link where you can download. I hope it can help.
You 5.xx ip is your server ip address ?
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!
Hello sir !circuit diagram send sir❤
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!
Allen Sandra Lopez Steven White Larry
Moore Kimberly Taylor Frank Hernandez Donald
And now the world knows your wifi password. Not the best idea to put that in your video.
😂 getting free internet from a wifi 100s of km away 😂