Merge pull request #4 from comoc/add-cccd-2902
add BLE2902 (to accept notify registration at the client.)
This commit is contained in:
commit
d36f526949
|
|
@ -202,6 +202,9 @@ bool BleMidiInterface::begin(const char* deviceName)
|
|||
BLECharacteristic::PROPERTY_NOTIFY |
|
||||
BLECharacteristic::PROPERTY_WRITE_NR
|
||||
);
|
||||
// Add CCCD 0x2902 to allow notify
|
||||
_characteristic->addDescriptor(new BLE2902());
|
||||
|
||||
_characteristic->setCallbacks(new MyCharacteristicCallbacks(this));
|
||||
// Start the service
|
||||
service->start();
|
||||
|
|
|
|||
Loading…
Reference in New Issue