Closed mrezzaaa closed 1 year ago
You should not run time and mem consuming tasks on core 0 especially networking task.
Please run your task on core 1 and debug it.
Your device free Heap is very critical and if you don't have much free memory available, I recommend calling this in loop. https://github.com/mobizt/Firebase-ESP-Client/blob/d2fce37b28a29dfa37fa97e1ef37f87983d90a13/examples/RTDB/DataChangesListener/Callback/Callback.ino#L194
With this, no memory was reserved, and stream will run in loop instead of FreeRTOS task and stream callback will get call as normally.
Ok, ill try. I will update later
It works! Thank you sir
Describe the bug Running streaming to RTDB. Crash after 20mins above. I think when regenerating token.
To Reproduce Separating task between main loop and firebase handling (Run on core #0). No time blocking execution, that's why i used different task and different core. I use core 0 esp32 for network handling. On stream connection established, free heap about 25-30% available
Error debug
Expected behavior When token is expired, regenerate token (refresh token) and establish connection again.
IDE and its version:
6.1.7
and home3.4.4
5.1.0