Comments on: Firebase: Control ESP8266 NodeMCU GPIOs from Anywhere https://randomnerdtutorials.com/firebase-control-esp8266-nodemcu-gpios/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Wed, 02 Jul 2025 10:42:30 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Sara Santos https://randomnerdtutorials.com/firebase-control-esp8266-nodemcu-gpios/#comment-1051764 Wed, 28 May 2025 15:08:10 +0000 https://randomnerdtutorials.com/?p=110533#comment-1051764 In reply to Hitesh.

Hi.
It’s because those pins are active LOW.
They work with inverted logic.
For more info, you can check the ESP8266 pinout:https://randomnerdtutorials.com/esp8266-pinout-reference-gpios/
Regards,
Sara

]]>
By: Hitesh https://randomnerdtutorials.com/firebase-control-esp8266-nodemcu-gpios/#comment-1051194 Tue, 27 May 2025 15:44:34 +0000 https://randomnerdtutorials.com/?p=110533#comment-1051194 When I use the Built-in LEDs ( @pin 2 and pin 16) there is some anomaly. When the state input is given/ sent as 1 from firebas the default LEDs turn off and when state is sent as 0 the LEDs turn on. Why does this happen??

]]>
By: Mariana https://randomnerdtutorials.com/firebase-control-esp8266-nodemcu-gpios/#comment-996789 Fri, 03 Jan 2025 12:33:21 +0000 https://randomnerdtutorials.com/?p=110533#comment-996789 Hola Sara!
Soy Mariana y probé el ejemplo y es fantástico, incluso manejo reglas desde realtime database, es más puedo conectar varios esp8266 con 2 salidas cada una de ella Los datos secretos son apikey y base_url, alguna forma de enviar desde una aplicación web el usuario y contraseña? desde ya gracias!

]]>
By: shahbaz https://randomnerdtutorials.com/firebase-control-esp8266-nodemcu-gpios/#comment-884338 Tue, 16 Jan 2024 12:02:29 +0000 https://randomnerdtutorials.com/?p=110533#comment-884338 hi sara:
this code not working in vs code it gives error
void streamCallback(FirebaseStream data){
Serial.printf(“stream path, %s\nevent path, %s\ndata type, %s\nevent type, %s\n\n”,
data.streamPath().c_str(),
data.dataPath().c_str(),
data.dataType().c_str(),
data.eventType().c_str());
FirebaseStream” has no member “streamPath”C/C++(135)

]]>
By: Sara Santos https://randomnerdtutorials.com/firebase-control-esp8266-nodemcu-gpios/#comment-821306 Fri, 24 Feb 2023 13:59:56 +0000 https://randomnerdtutorials.com/?p=110533#comment-821306 In reply to furqan.

You’ll have to create dive different datastreams on the different paths.
Regards,
Sara

]]>
By: furqan https://randomnerdtutorials.com/firebase-control-esp8266-nodemcu-gpios/#comment-821191 Fri, 24 Feb 2023 06:06:31 +0000 https://randomnerdtutorials.com/?p=110533#comment-821191 Dear Sara,

Thank you for your prompt response. I successfully tried listening to changes on one key. However, I would like to know how to listen to multiple keys. Specifically, if I have 12 keys in RTDB but only want to listen to changes on 5 of them, could you please assist me with this

Regards,
Furqan

]]>
By: Sara Santos https://randomnerdtutorials.com/firebase-control-esp8266-nodemcu-gpios/#comment-820962 Thu, 23 Feb 2023 10:03:52 +0000 https://randomnerdtutorials.com/?p=110533#comment-820962 In reply to furqan.

Hi.
You just need to add the complete path if you just want to listen to one key.
For example, if you just want to listen to changes on GPIO 12, you use the path as follows:
String listenerPath = “board1/outputs/digital/12”;

I hope this helps.
Regards,
Sara

]]>
By: furqan https://randomnerdtutorials.com/firebase-control-esp8266-nodemcu-gpios/#comment-820909 Thu, 23 Feb 2023 05:28:12 +0000 https://randomnerdtutorials.com/?p=110533#comment-820909 Dear Sara Santos,

I just wanted to reach out and thank you for creating such a useful tutorial on Firebase listeners. I was struggling with an issue in my project, and your tutorial helped me solve it quickly and easily. Your clear explanations and examples were incredibly helpful.

I did have a follow-up question, though. I was wondering if you could provide some guidance on how to monitor data changes of only a few KEYS, rather than the entire path in a real-time database(in above mentioned code you are trying to add a listener on all nodes). I think this would be a great addition to your tutorial and would help others who may be facing similar challenges.

Thank you again for all your help, and I hope to see more tutorials from you in the future

]]>
By: Sara Santos https://randomnerdtutorials.com/firebase-control-esp8266-nodemcu-gpios/#comment-819663 Fri, 17 Feb 2023 14:48:59 +0000 https://randomnerdtutorials.com/?p=110533#comment-819663 In reply to nesitah.

Hi.
Double-check your internet connection, double-check you’re using the right credentials, API key, database URL, and that you’ve enabled the proper database rules. You can’t skip any of the steps of the tutorial, otherwise, it won’t work properly.
Regards,
Sara

]]>
By: nesitah https://randomnerdtutorials.com/firebase-control-esp8266-nodemcu-gpios/#comment-818480 Mon, 13 Feb 2023 06:03:52 +0000 https://randomnerdtutorials.com/?p=110533#comment-818480 hai,
I tried the sketch but an erroroccured
stream begin error, sent request failed

stream time out, resuming
error code -3 reason not connected

what’s the reason?

]]>