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.

Комментарии • 38

  • @Shooter_Mc_Evan
    @Shooter_Mc_Evan Год назад +1

    Great tutorial. Many thanks

  • @songlyrix
    @songlyrix 10 месяцев назад +1

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

  • @farhanfaiyazkhan8916
    @farhanfaiyazkhan8916 5 месяцев назад

    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  5 месяцев назад +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.

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

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

  • @likhitakorla571
    @likhitakorla571 Год назад

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

  • @alfondadimascahaya4638
    @alfondadimascahaya4638 7 месяцев назад

    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  7 месяцев назад

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

  • @Lennings82
    @Lennings82 9 месяцев назад

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

    • @akpiot
      @akpiot  9 месяцев назад

      Link is not required

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

  • @lifeissimple2323
    @lifeissimple2323 Год назад

    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  Год назад

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

    • @lifeissimple2323
      @lifeissimple2323 Год назад

      @@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  Год назад

      Check the node connection by using timestamp

    • @lifeissimple2323
      @lifeissimple2323 Год назад

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

    • @akpiot
      @akpiot  Год назад

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

  • @chantaratisyaarisoni9930
    @chantaratisyaarisoni9930 Год назад

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

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

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

  • @asdfdsa538
    @asdfdsa538 11 месяцев назад

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

    • @akpiot
      @akpiot  11 месяцев назад

      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