Replies: 4 comments 4 replies
-
You should update the library to latest version. You do not need to cal Firebase.begin and Firebase.reset again. It should call once which is enough. When you call Firebase.reconnectWiFi(true), the library will handle WiFi reconnection for you as long as Firebase.ready() was called. You should make sure that Firebase.ready() was executed in loop to allow library to keep handling the network and authentication tasks. If you do so and still have the same issue, you should check your code logic. |
Beta Was this translation helpful? Give feedback.
-
There is some bug in ESP8266 core that when AP mode started and WiFi credentials received from user input which used to connect WiFi, WiFi will be connected as normally but no internet access. You need to restart device to fix this issue. |
Beta Was this translation helpful? Give feedback.
-
With your code you post above, I test it by turn on and off WiFi AP and did not see any issue. You don't need to wait for 1 hour to refresh the token, you can test it shortly by refresh token in 1 minute with this option.
And you will see that everything works fine. |
Beta Was this translation helpful? Give feedback.
-
In case you still get the problem I recommend that you should disable library WiFi reconnection and set WiFi auto reconnect to allow WiFiManager to reconnect it using this code. Firebase.reconnectWiFi(false);
WiFi.setAutoReconnect(true); When you call Firebase.reconnectWiFi, it will call I test with both cases, |
Beta Was this translation helpful? Give feedback.
-
Hi!
I'm having trouble in my project where I will communicate with RTDB once per hour or maybe every second hour.
If I loose WiFi-connection (or maybe just internet (not tested)) for a few hours I can no longer communicate with the RTDB.
I have a rather large sketch but I have shrunk it down to whats shown below, but the problem remains.
Tried to add Firebase.reset() and Firebase.begin every 30 min. But Firebase.reset() only gives compilation error.
Is there any way to bring the Firebase-client to live again after a WiFi outage?
Wold be really nice to avoid a restart of the ESP8266 since I have timing-stuff going on in my project.
For the moment I am totally clueless. And I am new to both programming and Firebase...
Serial output is found at the end of the sketch.
Beta Was this translation helpful? Give feedback.
All reactions