Page 1 of 1

esp_bufi_send_custom_data() function not free the memory used

Posted: Tue Jul 26, 2022 9:13 am
by JAHTKELD
Hello

I use the blufi library to configure Wifi on ESP32 and send a 1Mb file to ESP32. For this, the file is sent in blocks of 255 bytes
The ESP32 responds for each received block with, esp_bufi_send_custom_data, and the heap decreases. I can't receive the full file because at 91%, the heap memory is not enough and I get the error GATT not resources.

what can be done? why doesn't esp_bufi_send_custom_data release all the memory it uses?

Re: esp_bufi_send_custom_data() function not free the memory used

Posted: Fri Jul 29, 2022 8:03 am
by JAHTKELD
Hello:

I have found the problem. I have been using the https://github.com/wolfeidau/esp32-blufi explample.
And I have found a error at blufi_event_callback(), this function define a nvs_handler, open it, but not close it.