BLE
Fork of BLE_API by
Diff: source/DiscoveredCharacteristic.cpp
- Revision:
- 1116:82d4a8a56d91
- Parent:
- 1114:b6d999e7a73a
- Child:
- 1117:9cb51490b3f7
diff -r 04913cb9706e -r 82d4a8a56d91 source/DiscoveredCharacteristic.cpp --- a/source/DiscoveredCharacteristic.cpp Mon Jan 11 08:52:00 2016 +0000 +++ b/source/DiscoveredCharacteristic.cpp Mon Jan 11 08:52:01 2016 +0000 @@ -151,17 +151,12 @@ return error; } -ble_error_t DiscoveredCharacteristic::discoverDescriptors( - const CharacteristicDescriptorDiscovery::DiscoveryCallback_t& onCharacteristicDiscovered, - const CharacteristicDescriptorDiscovery::TerminationCallback_t& onTermination) const { +ble_error_t +DiscoveredCharacteristic::discoverDescriptors(DescriptorCallback_t callback, const UUID &matchingUUID) const +{ + /* Avoid compiler warnings */ + (void) callback; + (void) matchingUUID; - if(!gattc) { - return BLE_ERROR_INVALID_STATE; - } - - ble_error_t err = gattc->discoverCharacteristicDescriptors( - *this, onCharacteristicDiscovered, onTermination - ); - - return err; + return BLE_ERROR_NOT_IMPLEMENTED; /* TODO: this needs to be filled in. */ } \ No newline at end of file