fix: remove manual 0x2902/CCCD descriptor creation - NimBLE auto-creates it for NOTIFY characteristics; asserts on manual create
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user