Closed vanquang297 closed 10 months ago
The error is about stack overflow (out of memory) which is not related to something you assumed.
I am already tested it and it works normally with option config.database_url
.
Please make sure you read this.
You should have at least 20k free memory to perform the OTA download because of the SSL Client required 16k buffer memory to handle full frame SSL data for large payload download especially in case OTA which the memory will be reserved as much as this amount.
For ESP8266, you should stop doing everything that consumed memory and your device free Heap should be more than 18-20k before calling the OTA functions.
I am using the Firebase-ESP-Client library on ESP8266 and encountering an issue during OTA firmware from Firebase Stogare. When the
config.database_url
is initialized with the value ofDATABASE_URL
, the OTA update process leads to the ESP8266 restarting. However, if no value is assigned toconfig.database_url
, the OTA update process works normally.Successful case
In case of failure
I am hopeful to receive guidance or assistance regarding this issue, aiming to identify a resolution that allows for the utilization of
config.database_url
without triggering the ESP8266 restart during the OTA update process.I greatly appreciate your feedback and any support you can provide in addressing this matter.