MQTT in Node RED: Building a Dashboard and Logging Data

Поделиться
HTML-код
  • Опубликовано: 4 фев 2025

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

  • @katosembatya8353
    @katosembatya8353 3 месяца назад +1

    Precise explanations. Thank you

  • @tutturuu.3131
    @tutturuu.3131 8 месяцев назад +1

    Thanks for the informative video, it helps me greatly with my project. :D

  • @alexis-cg5pl
    @alexis-cg5pl 6 месяцев назад +1

    Gracias, fue de gran ayuda para configurar mis funciones 👍🏼

  • @DavidBarnwell876tkdja
    @DavidBarnwell876tkdja 11 месяцев назад +9

    Hiw did you set up the MQTT broker? You haven't said. Is there a link that explains this?

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

      Look for Eclipse Mosquitto. Can run on Windows as a service. Go through a couple of how-to's via RUclips. You should be able to have it running and accepting data in about 30 minutes. I am using Arduino Nano IoT 33's to send data to this broker. MQTT Explorer can be used to see the available data also, but this tutorial is the finishing touch.

  • @599mighty6
    @599mighty6 Месяц назад

    What is causing the LED to blink on and off in this code?

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

    Perfect

  • @DavidBarnwell876tkdja
    @DavidBarnwell876tkdja 11 месяцев назад +2

    How do you set up an MQTT broker on windows?

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

      We did not set up the MQTT broker on Windows but we used the hivemq MQTT broker. From windows , using node-red we are just subscribing and publishing data. Please check previous videos, in which we have used hivemq MQTT broker.

    • @DavidBarnwell876tkdja
      @DavidBarnwell876tkdja 11 месяцев назад +1

      OK, I figured it out thanks. But in your code you give a client ID. Is that an ID you created or was it autogenerated? If it was autogenerated, where did you find it?@@HighVoltages

    • @HighVoltages
      @HighVoltages  11 месяцев назад +1

      You can write anything in the client id but each device should have a unique client id.

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

      @@DavidBarnwell876tkdja how you did it please ??

  • @latata1215
    @latata1215 9 месяцев назад +2

    why on my node-red website Cannot GET /ui/

  • @khangthai4216
    @khangthai4216 5 месяцев назад +1

    thanks u

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

    Sir can I run two stepper motors simultaneously and obatin data through nodered?

  • @malekachour6294
    @malekachour6294 11 месяцев назад +1

    what is the funcyion between mqtt and neopixel!!

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

      In this video, neopixel is connected to the ESP32 and ESP32 is connected to the Node-red using MQTT protocol and (MQTT+node red) is allowing us to control the neopixel led.

  • @deannevilla
    @deannevilla 4 месяца назад

    Garcia Brenda Rodriguez Brian Robinson Kevin

  • @najmiarf
    @najmiarf 2 месяца назад

    I got this error:
    In file included from sketch.ino:5:
    /libraries/ServoESP32/src/Servo.h:68:54: error: 'SOC_LEDC_TIMER_BIT_WIDE_NUM' was not declared in this scope; did you mean 'SOC_LEDC_TIMER_BIT_WIDTH'?
    68 | static const int TIMER_RESOLUTION = std::min(16, SOC_LEDC_TIMER_BIT_WIDE_NUM);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    | SOC_LEDC_TIMER_BIT_WIDTH
    /libraries/ServoESP32/src/Servo.h: In member function 'bool ServoTemplate::attach(int, int, T, T, int, int, int)':
    /libraries/ServoESP32/src/Servo.h:148:9: error: there are no arguments to 'ledcSetup' that depend on a template parameter, so a declaration of 'ledcSetup' must be available [-fpermissive]
    148 | ledcSetup(_channel, frequency, TIMER_RESOLUTION);
    | ^~~~~~~~~
    /libraries/ServoESP32/src/Servo.h:148:9: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    /libraries/ServoESP32/src/Servo.h:149:9: error: there are no arguments to 'ledcAttachPin' that depend on a template parameter, so a declaration of 'ledcAttachPin' must be available [-fpermissive]
    149 | ledcAttachPin(_pin, _channel);
    | ^~~~~~~~~~~~~
    /libraries/ServoESP32/src/Servo.h: In member function 'bool ServoTemplate::detach()':
    /libraries/ServoESP32/src/Servo.h:168:9: error: there are no arguments to 'ledcDetachPin' that depend on a template parameter, so a declaration of 'ledcDetachPin' must be available [-fpermissive]
    168 | ledcDetachPin(_pin);
    | ^~~~~~~~~~~~~
    /libraries/ServoESP32/src/Servo.h: In instantiation of 'bool ServoTemplate::attach(int, int, T, T, int, int, int) [with T = int]':
    sketch.ino:136:15: required from here
    /libraries/ServoESP32/src/Servo.h:148:18: error: 'ledcSetup' was not declared in this scope
    148 | ledcSetup(_channel, frequency, TIMER_RESOLUTION);
    | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /libraries/ServoESP32/src/Servo.h:149:22: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
    149 | ledcAttachPin(_pin, _channel);
    | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
    | ledcAttach
    /libraries/ServoESP32/src/Servo.h: In instantiation of 'bool ServoTemplate::detach() [with T = int]':
    /libraries/ServoESP32/src/Servo.h:88:24: required from 'ServoTemplate::~ServoTemplate() [with T = int]'
    sketch.ino:21:7: required from here
    /libraries/ServoESP32/src/Servo.h:168:22: error: 'ledcDetachPin' was not declared in this scope; did you mean 'ledcDetach'?
    168 | ledcDetachPin(_pin);
    | ~~~~~~~~~~~~~^~~~~~
    | ledcDetach
    Multiple libraries were found for "Servo.h"
    Used: /libraries/ServoESP32
    Not used: /libraries/Servo
    Multiple libraries were found for "WiFi.h"
    Used: /esp32/hardware/esp32/3.0.7/libraries/WiFi
    Not used: /libraries/WiFiEspAT
    Not used: /libraries/WiFi
    Error during build: exit status 1
    What is this error mean?