how to reduce ble memory requirements / build custom esp32 libs for arduino

opsaxell
Posts: 2
Joined: Thu Jul 09, 2020 7:48 pm

how to reduce ble memory requirements / build custom esp32 libs for arduino

Postby opsaxell » Thu Jul 09, 2020 9:59 pm

Hi!

I want to use https and ble together, but running in to out of memory problems.
I have seen instructions on using menuconfig to disable classic bluetooth, but don't know exactly how to that on with arduino.
I have tried this https://github.com/espressif/arduino-es ... builder.md
using the legacy (mingw) esp toolchain.
I get the menu config done, with build.sh I see some errors so I tried just to take the bluetooth libs and copy them over to arduino
packages\esp32\hardware\esp32\1.0.4\tools\sdk\lib
copying also sdkconfig.h and adding one define there manually.
after these I get the project to compile, but it just get stuck at BLEDevice::init(""); when running...

any advice would be much appreciated.

// o-p

opsaxell
Posts: 2
Joined: Thu Jul 09, 2020 7:48 pm

Re: how to reduce ble memory requirements / build custom esp32 libs for arduino

Postby opsaxell » Fri Jul 10, 2020 12:57 pm

in case someone else has these issues:
esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT);
before
BLEDevice::init("");

gives maybe 12k back, judging by the
[V][ssl_client.cpp:56] start_ssl_client(): Free internal heap before TLS 86604
debug msgs (level verbose)

enough for me to do BLE scan and https.

still a bit tight, so would like to know how to do the custom libs.
would want to try next to reduce the TLS msg buffer sizes there (from 16k to 4k)

// o-p

Who is online

Users browsing this forum: No registered users and 45 guests