add BLE2902

This commit is contained in:
Akihiro Komori 2018-12-11 15:00:25 +09:00
parent 90410c60b8
commit 98cdddfb16
1 changed files with 3 additions and 0 deletions

View File

@ -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();