add BLE2902
This commit is contained in:
parent
90410c60b8
commit
98cdddfb16
|
|
@ -202,6 +202,9 @@ bool BleMidiInterface::begin(const char* deviceName)
|
||||||
BLECharacteristic::PROPERTY_NOTIFY |
|
BLECharacteristic::PROPERTY_NOTIFY |
|
||||||
BLECharacteristic::PROPERTY_WRITE_NR
|
BLECharacteristic::PROPERTY_WRITE_NR
|
||||||
);
|
);
|
||||||
|
// Add CCCD 0x2902 to allow notify
|
||||||
|
_characteristic->addDescriptor(new BLE2902());
|
||||||
|
|
||||||
_characteristic->setCallbacks(new MyCharacteristicCallbacks(this));
|
_characteristic->setCallbacks(new MyCharacteristicCallbacks(this));
|
||||||
// Start the service
|
// Start the service
|
||||||
service->start();
|
service->start();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue