ESP32 can memory-usage of library BluetoothSerial be reduced?

Hi,
I'm working on a project where I need multiple libraries.
Without including BluetoothSerial and without creating an object

#include "BluetoothSerial.h"
....
BluetoothSerial SerialBT;

the compilers says 51% of memory used. If I add bluettooth this value jumps up to 96% memory used. This means the bluetooth-object needs 45% of the whole memory. Is there any possability to reduce the memory-usage of the bluetooth-library? or does there exist an alternativy library?

best regards
Stefan

I have seen comment on the Expressif support forums about the size of the ESp32 Bluetooth library, I seem to recall there was also comment about a possible future revision.

Its Expressif that produce the software libraries for the ESP32.

Hi,
Is this the same library?

Tom... :slight_smile:

TomGeorge:
Hi,
Is this the same library?
ESP32 BLE Arduino - Arduino Libraries

Tom... :slight_smile:

Hi Tom,
no this is a different library.
I (yet) don't know the difference between bluetooth and bluetooth low energy BLE
The SerialBluetooth-lib uses "High-energy"-bluetooth not BLE
I looked inside the lib you mentioned
There is no example like testing bluetoothserial
what comes closest from the name is the example "uart"
the comments say
The design of creating the BLE server is:

  1. Create a BLE Server
  2. Create a BLE Service
  3. Create a BLE Characteristic on the Service
  4. Create a BLE Descriptor on the characteristic
  5. Start the service.
  6. Start advertising.

huh ? what?
if a simple uart-connection send/receive bytes through BLE is that complex I don't want to use it
But maybe I have a fundamental misunderstanding. Anyway as long as the creator of a "exchange-data-lib" does not include
a simple send/receive-bytes example I'm not willing to use it.

best regards

Stefan