Closed floatAsNeeded closed 3 years ago
Your code can't reproduce.
You should remove all third party libraries from the code.
Share your clean, clear and minimal code instead of integration code.
Otherwise you should debug your code first and address where in the code that causes the error and what's your expected result and what's the error you get instead of crash that possibilities of crash are unclear and not related directly to the library.
You need to update the library to the latest version, post your clean code without third party libs which everyone can test and reproduce the error.
Hi
Thanks for the respond! I tried the latest version already, the issue came after the 3.10.0 as stated, I didn't try to debug because everything was working always, but just after updating from 3.9.7 the issue came up, that's why I thought it was related to the library, but it could be a mix of things. I will do the test without any library and let you know!
Also, another thing, the reboot happens just immediately after the board restarts
Now I'm testing something that possible causes the crash with legacy initialize function (begin using Firebase host and database secret).
I will inform you soon.
Now the update, v3.10.4 is available with this bug fixed.
Please update the library.
Thank you very much! It is now working well! The only thing I noticed is that sometimes if I use the setAsync it doens't actually update the data if I update many datas at once. Why you think that is happening? Is it okay to use it on float values?
The async in this library used is for store only and is not actually async request unless the response was ignored (no wait) and continue to send other requests which Firebase supports concurrent request like this.
The session reused and closed by server or by library (every 3 minutes and when get was called). Sometimes server closed the connection by itself, and due to no response was checked then your database was not changed.
You can check the connection by calling httpConnected() from Firebase Data object to determine the request of async function was sent or not.
Sorry for late reply! Thank you very much for the info
Hi!
I just found myself in this problem recently when updating to a version of the library from 3.10.0 or newer. It basically reset the board with the following error:
This is my code I'm using
I Know I use third party library as well, but I don't think that is the issue because it always worked with previous versions of the library. Deleted firebase secret for privacy.
IDE and its version:
ESP32 Arduino Core SDK version