fix: remove manual 0x2902/CCCD descriptor creation - NimBLE auto-creates it for NOTIFY characteristics; asserts on manual create

This commit is contained in:
ash
2026-06-30 07:37:48 +00:00
parent d19d1acbdd
commit 6e3173c9b8
+2 -4
View File
@@ -81,10 +81,8 @@ bool BleMidiTransport::begin() {
Serial.println("[BLE] FAILED to create characteristic");
return false;
}
Serial.println("[BLE] Creating descriptor...");
Serial.flush();
ble_char->createDescriptor(BLEUUID((uint16_t)0x2902), NIMBLE_PROPERTY::READ | NIMBLE_PROPERTY::WRITE);
Serial.println("[BLE] Descriptor created");
// 0x2902 (CCCD) is auto-created by NimBLE stack when characteristic
// has NOTIFY or INDICATE property - do NOT manually create it.
Serial.println("[BLE] Setting callbacks...");
ble_char->setCallbacks(new CharCallbacks());
Serial.println("[BLE] Callbacks set");