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.
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?
@@akpiot hi there ! I have just installed node red and I wanted to try to make it work. I perfectly started it and I tried to build up something. Now the problem is when I'm trying to display the result in the dashboard in the browser using this link ' localhost:1880/ui/ ' I got this message back: ' Welcome to the Node-RED Dashboard Please add some UI nodes to your flow and redeploy '. I don't really understand what's going wrong with it. can someone help me please ?
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.
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
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
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
Great tutorial. Many thanks
Welcome
NodeRed is not working they are saying pls add some UI nodes to your flow and redeploy
What is the required library to include the PubSubClient in the arduino sir ?
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.
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
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..
nice vedio, but not work nod red dashbord, can you help me
Thanks for watching, can you share your problem
@@akpiot hi there !
I have just installed node red and I wanted to try to make it work.
I perfectly started it and I tried to build up something.
Now the problem is when I'm trying to display the result in the dashboard in the browser using this link
' localhost:1880/ui/ ' I got this message back: ' Welcome to the Node-RED Dashboard
Please add some UI nodes to your flow and redeploy '.
I don't really understand what's going wrong with it.
can someone help me please ?
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
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.
why is he putting in the link in on the switch?
Link is not required
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
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 ?
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
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..
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