I try to scan and connect to a Blutooth device (classic) with an ESP32.
Due to usage of other libs, I prefer to use “Arduino” framework.
It seems that pio currently only support an old version of Arduino-ESP32 that only includes rudimentary Bluetooth support.
Is it possible to use latest Arduino-ESP32 with platformio? Especially the additonal BluetoothSerial files for scanning etc.?
I tried with
toolchain-xtensa32 @ ^2.8
in platformio.ini but this results in strange linker error:
/firstname.lastname@example.org/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: final link failed: bad value
Without the toolchain-version 2.8 (or 3.8) the linker can’t find some symbols (crt1-sim.o, _vectors.o).
Are there any other recommendation which libraries to use to connect to a serial Bluetooth device? (That are compatible to Arduino - or have some libraries for SSD1306 available).
Note: In a later step I also need Bluetooth LE support.