How to Configure MQTT Mosquitto broker & Node-Red Dashboard to Control NodeMCU ESP8266
HTML-код
- Опубликовано: 28 авг 2024
- Controlling ESP8266(NodeMCU) based Applications with Node-RED MQTT(Mosquitto Local & Public Server) Dashboard
Arduino Code drive.google.c...
#ESP8266(NodeMCU) #NodeRED #MQTT.
Great tutorial. Many thanks
Welcome
NodeRed is not working they are saying pls add some UI nodes to your flow and redeploy
Great Video Sir, I am using mosquitto broker locally and have also done port forwarding from pc IP to localhost on 1883, yet still not able to connect with esp (Serial Monitor: Attempting MQTT connection...failed, rc=-2 try again in 5 seconds).
Thanks for watching the video ,please check the status of port forwarding if it's properly configured or not ,,else check your mqtt code and upload it once again, hope it will solve the problem.
Thanks so much, I tried this so I can get the Arduino basics and this for real is so helpful but when I opened node-red ui I can't see the switch icon on the screen
watch the video from 7:00 and install node-red dashboard from palatte option
great..can you some the change of code for adding more leds to a separate topic?
Do you want to control multiple leds seperately using multiple topics ??
AKP's Tech Classroom that is correct
It's possible..
I can get two LEDs to turn on but not using separate topics. How do you do this?
@@ModelRailroadTechniques use 2 topics to control 2 leds .. just subscribe the topics from MQTT client
What is the required library to include the PubSubClient in the arduino sir ?
Hello sir, i have a trouble my mqtt wont connected it says rc=-4 or sometimes rc=-2 i already configure the mqtt nodes same as yours cause i run my modquitto broker on local how do i fix it?
Do the port forwarding from your pc IP to 127.0.0.1 on port 1883..
why is he putting in the link in on the switch?
Link is not required
Nice video ...I have a problem though, i cannot establish connection to the mqtt broker which i'm running the server locally ...I have used my pc's ip4 address
Thanks .. please share the error message
Hello sir, I am not able to make connection between switch and MQTT in . It is showing successful deployed at the same time it is connecting not connected. Could you please guide us on this issue.
Check mqtt broker & nodered connection first. Put the right ip details or server address in mqtt node settings in node red .
@@akpiot everything is working but in node red dashboard it is asking to add some UI nodes to the flow and redeploy. How can we solve this sir?
Check the node connection by using timestamp
@@akpiot we are getting some error in the serial monitor as attempting mqtt connection... Failed,rc=-2 try again in 5 seconds
The error is coming due to ip connection between esp & mqtt server. Instead of local server use cloud mqtt server like hive.
hello is the ip addres for mqtt is ''IPv4 address'' when we type ipconfig?
Yes if you are using local mosquito mqtt server..
is it the IPv4 address or IPv4 DNS servers one?@@akpiot
IPV4 address..
ok thank you@@akpiot
how can i know my mosquitto ip ? im going to run it locally, but i dont know the ip address... can you tell me where i can find it?
In cmd type ipconfig..in Linux ifconfig
@@akpiot is it addres for mosquitto than i run locally ?
why you used linkin, i dont get that.
Hi. thanks for your query Its not required here ..If you want to exchange data between nodes that belong to different flows then its useful..
what should ı write for mqtt server ? whats ıp adress is it
If mqtt server is installed in the same pc where nodered installed then use localhost or 127.0.0.1
Else you need to use ip address of the pc where mqtt server is running