My ESP8266 is not Working as it Should #599
-
I am working on a project which includes the ESP8266, Push button, LCD display, some LED's and finally Firebase for realtime communications. Now, what happens is that whenever the button is pressed, it increments the counter, the LED's blink accordingly and LCD display's the output fetched from firebase. Everything works great for 1 hour but after that its gets so slow that I have to press and hold the button for like 5 - 6 seconds in order to register the input and it takes another 4 seconds to update and fetch the data. Kindly help me in this regard, im not sure where im doing wrong. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
At least you should call In all examples, it is recommended that the Firebase-ESP-Client/examples/RTDB/Basic/Basic.ino Lines 179 to 181 in a3701a0 The function The authentication token was used to access the Google Firebase services and it is short-lived token which expires in 60 minutes. If the authentication token is expired, the re-authenticating process will begin after The authentication process is a blocking process that takes time (for handshake and sending the auth request and receiving the auth response from Google API server) and the new auth token received will be used instead of expired one. See the authentication examples for the authentication method supported. |
Beta Was this translation helpful? Give feedback.
At least you should call
Firebase.ready()
to check the authentication status before processing the Firebase request.In all examples, it is recommended that the
Firebase.ready()
should be executed repeatedly in mainloop()
for authentication handling.Firebase-ESP-Client/examples/RTDB/Basic/Basic.ino
Lines 179 to 181 in a3701a0
The function
Firebase.ready()
is importance in this library to maintain the authentication process and it also gives the authentication status.The authentication toke…