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.
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.
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
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.
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?
Precise explanations. Thank you
Thanks for the informative video, it helps me greatly with my project. :D
Glad it helped!
Gracias, fue de gran ayuda para configurar mis funciones 👍🏼
Hiw did you set up the MQTT broker? You haven't said. Is there a link that explains this?
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.
What is causing the LED to blink on and off in this code?
Perfect
How do you set up an MQTT broker on windows?
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.
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
You can write anything in the client id but each device should have a unique client id.
@@DavidBarnwell876tkdja how you did it please ??
why on my node-red website Cannot GET /ui/
thanks u
Welcome
Sir can I run two stepper motors simultaneously and obatin data through nodered?
what is the funcyion between mqtt and neopixel!!
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.
Garcia Brenda Rodriguez Brian Robinson Kevin
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?