Switch from NimBLE-Arduino to ESP32-BLE-MIDI library

Replace direct NimBLE-Arduino dependency with max22/ESP32-BLE-MIDI
wrapper library (v0.3.2). Rewrite ble_midi_transport to use
BLEMidiServer API instead of raw NimBLEDevice calls.

Removes patch_nimble_device() from pre_build.py — no longer needed
since BT controller init is managed by the library internally.

The library uses NimBLE v1.4.1 internally and configures advertising
without setScanResponse() or setName(), which may resolve the invisible
BLE advertising issue on ESP32-S3.
This commit is contained in:
ash
2026-07-01 06:34:36 +00:00
parent 1517eda13e
commit 62d1e430d5
4 changed files with 67 additions and 276 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ framework = arduino
lib_deps =
adafruit/Adafruit TinyUSB [email protected]
fastled/FastLED@^3.9.0
h2zero/NimBLE-Arduino@^1.4.0
max22/ESP32-BLE-MIDI@^0.3.2
build_unflags =
-DARDUINO_USB_MODE=1