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

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • Controlling ESP8266(NodeMCU) based Applications with Node-RED MQTT(Mosquitto Local & Public Server) Dashboard
    Arduino Code drive.google.c...
    #ESP8266(NodeMCU) #NodeRED #MQTT.

Komentáře • 38

  • @Shooter_Mc_Evan
    @Shooter_Mc_Evan Před rokem +1

    Great tutorial. Many thanks

  • @farhanfaiyazkhan8916
    @farhanfaiyazkhan8916 Před 5 měsíci

    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  Před 5 měsíci +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.

  • @songlyrix
    @songlyrix Před 11 měsíci +1

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

  • @justplaygames7804
    @justplaygames7804 Před 2 lety +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  Před 2 lety +1

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

  • @ModelRailroadTechniques
    @ModelRailroadTechniques Před 2 lety +1

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

    • @akpiot
      @akpiot  Před 2 lety

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

    • @ModelRailroadTechniques
      @ModelRailroadTechniques Před 2 lety

      AKP's Tech Classroom that is correct

    • @akpiot
      @akpiot  Před 2 lety

      It's possible..

    • @ModelRailroadTechniques
      @ModelRailroadTechniques Před 2 lety

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

    • @akpiot
      @akpiot  Před 2 lety

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

  • @likhitakorla571
    @likhitakorla571 Před rokem

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

  • @alfondadimascahaya4638
    @alfondadimascahaya4638 Před 7 měsíci

    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  Před 7 měsíci

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

  • @tonymaiyo9500
    @tonymaiyo9500 Před 2 lety

    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  Před 2 lety

      Thanks .. please share the error message

  • @Lennings82
    @Lennings82 Před 9 měsíci

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

    • @akpiot
      @akpiot  Před 9 měsíci

      Link is not required

  • @chantaratisyaarisoni9930

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

  • @lifeissimple2323
    @lifeissimple2323 Před rokem

    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  Před rokem

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

    • @lifeissimple2323
      @lifeissimple2323 Před rokem

      @@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  Před rokem

      Check the node connection by using timestamp

    • @lifeissimple2323
      @lifeissimple2323 Před rokem

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

    • @akpiot
      @akpiot  Před rokem

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

  • @adhyatmakartika5121
    @adhyatmakartika5121 Před 2 lety

    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  Před 2 lety

      In cmd type ipconfig..in Linux ifconfig

    • @adhyatmakartika5121
      @adhyatmakartika5121 Před 2 lety

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

  • @asdfdsa538
    @asdfdsa538 Před rokem

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

    • @akpiot
      @akpiot  Před rokem

      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 Před 2 lety

    why you used linkin, i dont get that.

    • @akpiot
      @akpiot  Před 2 lety

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