firebase-arduino icon indicating copy to clipboard operation
firebase-arduino copied to clipboard

Reconnect to firebase not working while in loop

Open saiof95 opened this issue 5 years ago • 8 comments

In setup() firebase gets connected but after it gets disconnected reconnect function doesnt work.

saiof95 avatar Jan 27 '20 09:01 saiof95

try to add Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH) in failed like that:

if(Firebase.failed())
{
   Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
}

it will reconnect if the internet lost until the internet back again.

Arafa-microsys avatar Apr 09 '20 23:04 Arafa-microsys

Yes tried that one but it never connects and results in failed... I noticed that firebase begin works only in setup section

saiof95 avatar Apr 20 '20 07:04 saiof95

I've been having the same problem! Firebase setup seems to work. Serial monitor accuses sending variables once (which doesn't happen in fact) then the connection to Firebase fails.

cayamic avatar Jul 16 '20 16:07 cayamic

@saiof95 @cayamic

Try this library by @mobizt to solve this connection issue:- https://github.com/mobizt/Firebase-ESP8266/

For more info, checkout this tutorial:- https://youtu.be/nLzC0-VaqDs

Thanks

TrickSumo avatar Jul 17 '20 08:07 TrickSumo

Thank you... checked, seems good...will surely try it out...

saiof95 avatar Jul 17 '20 10:07 saiof95

@saiof95 Welcome 😊

TrickSumo avatar Jul 17 '20 11:07 TrickSumo

Thank you so much!!!! It's finally working!

I guess the problem was that the Secret Keys are deprecated and the Fingerprint keeps changing all the time. Firebase is suggesting users to set up Firebase Admin SDK. I still don't have any idea how to do that.

Thanks again TrickSumo!

On Fri, Jul 17, 2020 at 8:06 AM TrickSumo [email protected] wrote:

@saiof95 https://github.com/saiof95 Welcome 😊

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/FirebaseExtended/firebase-arduino/issues/472#issuecomment-660045118, or unsubscribe https://github.com/notifications/unsubscribe-auth/APKVEVFVRARALZXQT4PAXSTR4AWBPANCNFSM4KL6JDRA .

cayamic avatar Jul 18 '20 18:07 cayamic

You're Welcome @cayamic 😊

TrickSumo avatar Jul 19 '20 03:07 TrickSumo