esp_bufi_send_custom_data() function not free the memory used

JAHTKELD
Posts: 12
Joined: Tue Jul 02, 2019 8:51 am

esp_bufi_send_custom_data() function not free the memory used

Postby JAHTKELD » Tue Jul 26, 2022 9:13 am

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?

JAHTKELD
Posts: 12
Joined: Tue Jul 02, 2019 8:51 am

Re: esp_bufi_send_custom_data() function not free the memory used

Postby JAHTKELD » Fri Jul 29, 2022 8:03 am

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.

Who is online

Users browsing this forum: No registered users and 157 guests