-
Notifications
You must be signed in to change notification settings - Fork 493
Firebase was not reconnecting ESP8266 #437
Comments
Hi I am also facing the same issue. I am using ESP.reset as a temporary remedy. Though it does not fully resolve the problem but ESP.reset(); helps to reconnect to firebase.
|
I can't seem to set or push any value to firebase from NodeMCU that worked a month ago. Edit: NVM firebase changed their fingerprint to B6:F5:80:C8:B1:DA:61:C1:07:9D:80:42:D8:A9:1F:AF:9F:C8:96:7D |
error stream :(( |
I installed the Version 5.13.4 of ArduinoJson library, the newer versions seems to not work for NodeMCU |
Hi ArduinoJson 6.0 is not compatible with firebase-arduino right now. This one will work:- |
@FrankAndYoung Hey frank, how do you check the fingerprint of firebase? |
Oh you dont enter the actual url, instead you enter the host reference to your realtime database |
@FrankAndYoung Thanks a lot Frank! It worked |
It Works... @FrankAndYoung Thank you. |
Hi @ironaraujo Yes, it is necessary to rebuild all devices after fingerprint update. It happens everytime whenever firebase server SSL certificate renewed. |
@TrickSumo |
This library does not use fingerprint to connect to firebase:- |
Two days I did everything to connect to the firebase but I couldn't connect. below is my code. Looking for help plz: #include <ESP8266WiFi.h> #define LedPin 16 #define FIREBASE_HOST "nodemculed-32c6b.firebaseio.com" void setup() { if (Firebase.available()) { |
@TrickSumo This libs is awesome. It recovers from internet disconnection and firebase stream time out. |
@nheoo I also would add an delay(1000) immediately after "Firebase.stream("/Myhome");" in setup. It will give more time to estabilish the connection. |
Yes, that library is awesome. Thanks to @mobizt |
thank u <3 I knew my problem. Are there any i/o pins to declare that I can use? |
@FrankAndYoung Thanks man! It solved the problem for me. |
not able to connect NodeMCU to firebase right now help me please |
can see any value which is fetched from a database from firebase to nodemcu |
Once the internet connection is disconnected, it's wired again. When I'm wired again, firebase does not connect. So when the problem is wired again, it's not connected to firebasis again. How do I do that?
`boolean WiFiReturns() {
if (WiFi.localIP() == IPAddress(0, 0, 0, 0)) return 0;
switch (WiFi.status()) {
case WL_NO_SHIELD: return 0;
case WL_IDLE_STATUS: return 0;
case WL_NO_SSID_AVAIL: return 0;
case WL_SCAN_COMPLETED: return 1;
case WL_CONNECTED: return 1;
case WL_CONNECT_FAILED: return 0;
case WL_CONNECTION_LOST: return 0;
case WL_DISCONNECTED: return 0;
default: return 0;
}
}
void firebasereconnect()
{
Serial.println("Trying to reconnect");
Firebase.begin(firebaseURl, authCode);
}
void loop() {
if (!WiFiReturns()) {
WiFi.isConnected();
digitalWrite(WIFILED, HIGH);
firebasereconnect();
} else {
digitalWrite(WIFILED, LOW);
}
}`
The text was updated successfully, but these errors were encountered: