How to Configure MQTT Mosquitto broker & Node-Red Dashboard to Control NodeMCU ESP8266

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 2024

ความคิดเห็น • 41

  • @Shooter_Mc_Evan
    @Shooter_Mc_Evan ปีที่แล้ว +1

    Great tutorial. Many thanks

    • @akpiot
      @akpiot  ปีที่แล้ว

      Welcome

  • @songlyrix
    @songlyrix ปีที่แล้ว +1

    NodeRed is not working they are saying pls add some UI nodes to your flow and redeploy

  • @likhitakorla571
    @likhitakorla571 ปีที่แล้ว

    What is the required library to include the PubSubClient in the arduino sir ?

  • @farhanfaiyazkhan8916
    @farhanfaiyazkhan8916 8 หลายเดือนก่อน

    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).

    • @akpiot
      @akpiot  8 หลายเดือนก่อน +1

      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.

  • @ModelRailroadTechniques
    @ModelRailroadTechniques 2 ปีที่แล้ว +1

    great..can you some the change of code for adding more leds to a separate topic?

    • @akpiot
      @akpiot  2 ปีที่แล้ว

      Do you want to control multiple leds seperately using multiple topics ??

    • @ModelRailroadTechniques
      @ModelRailroadTechniques 2 ปีที่แล้ว

      AKP's Tech Classroom that is correct

    • @akpiot
      @akpiot  2 ปีที่แล้ว

      It's possible..

    • @ModelRailroadTechniques
      @ModelRailroadTechniques 2 ปีที่แล้ว

      I can get two LEDs to turn on but not using separate topics. How do you do this?

    • @akpiot
      @akpiot  2 ปีที่แล้ว

      @@ModelRailroadTechniques use 2 topics to control 2 leds .. just subscribe the topics from MQTT client

  • @alfondadimascahaya4638
    @alfondadimascahaya4638 11 หลายเดือนก่อน

    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
      @akpiot  11 หลายเดือนก่อน

      Do the port forwarding from your pc IP to 127.0.0.1 on port 1883..

  • @ruwanpremashantha428
    @ruwanpremashantha428 13 วันที่ผ่านมา

    nice vedio, but not work nod red dashbord, can you help me

    • @akpiot
      @akpiot  12 วันที่ผ่านมา +1

      Thanks for watching, can you share your problem

    • @ruwanpremashantha428
      @ruwanpremashantha428 12 วันที่ผ่านมา

      @@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 ?

  • @chantaratisyaarisoni9930
    @chantaratisyaarisoni9930 ปีที่แล้ว

    hello is the ip addres for mqtt is ''IPv4 address'' when we type ipconfig?

  • @lifeissimple2323
    @lifeissimple2323 2 ปีที่แล้ว

    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.

    • @akpiot
      @akpiot  2 ปีที่แล้ว

      Check mqtt broker & nodered connection first. Put the right ip details or server address in mqtt node settings in node red .

    • @lifeissimple2323
      @lifeissimple2323 2 ปีที่แล้ว

      @@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?

    • @akpiot
      @akpiot  2 ปีที่แล้ว

      Check the node connection by using timestamp

    • @lifeissimple2323
      @lifeissimple2323 2 ปีที่แล้ว

      @@akpiot we are getting some error in the serial monitor as attempting mqtt connection... Failed,rc=-2 try again in 5 seconds

    • @akpiot
      @akpiot  2 ปีที่แล้ว

      The error is coming due to ip connection between esp & mqtt server. Instead of local server use cloud mqtt server like hive.

  • @Lennings82
    @Lennings82 ปีที่แล้ว

    why is he putting in the link in on the switch?

    • @akpiot
      @akpiot  ปีที่แล้ว

      Link is not required

  • @justplaygames7804
    @justplaygames7804 2 ปีที่แล้ว +1

    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

    • @akpiot
      @akpiot  2 ปีที่แล้ว +1

      watch the video from 7:00 and install node-red dashboard from palatte option

  • @adhyatmakartika5121
    @adhyatmakartika5121 2 ปีที่แล้ว

    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?

    • @akpiot
      @akpiot  2 ปีที่แล้ว

      In cmd type ipconfig..in Linux ifconfig

    • @adhyatmakartika5121
      @adhyatmakartika5121 2 ปีที่แล้ว

      @@akpiot is it addres for mosquitto than i run locally ?

  • @asdfdsa538
    @asdfdsa538 ปีที่แล้ว

    what should ı write for mqtt server ? whats ıp adress is it

    • @akpiot
      @akpiot  ปีที่แล้ว

      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

  • @SurajSande88
    @SurajSande88 2 ปีที่แล้ว

    why you used linkin, i dont get that.

    • @akpiot
      @akpiot  2 ปีที่แล้ว

      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..

  • @tonymaiyo9500
    @tonymaiyo9500 2 ปีที่แล้ว

    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

    • @akpiot
      @akpiot  2 ปีที่แล้ว

      Thanks .. please share the error message