Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconnect to firebase not working while in loop #472

Open
saiof95 opened this issue Jan 27, 2020 · 8 comments
Open

Reconnect to firebase not working while in loop #472

saiof95 opened this issue Jan 27, 2020 · 8 comments

Comments

@saiof95
Copy link

saiof95 commented Jan 27, 2020

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

@Arafa-microsys
Copy link

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.

@saiof95
Copy link
Author

saiof95 commented Apr 20, 2020

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

@cayamic
Copy link

cayamic commented Jul 16, 2020

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.

@TrickSumo
Copy link
Contributor

@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

@saiof95
Copy link
Author

saiof95 commented Jul 17, 2020

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

@TrickSumo
Copy link
Contributor

@saiof95 Welcome 😊

@cayamic
Copy link

cayamic commented Jul 18, 2020 via email

@TrickSumo
Copy link
Contributor

You're Welcome @cayamic 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants