Nordic stack and drivers for the mbed BLE API
Dependents: BLE_ANCS_SDAPI BLE_temperature BLE_HeartRate writable_gatt ... more
Diff: source/nRF5xServiceDiscovery.h
- Revision:
- 548:920e941cbe1e
- Parent:
- 544:9e3d053ad4ec
- Child:
- 549:3f782c64d014
diff -r 8550af084edc -r 920e941cbe1e source/nRF5xServiceDiscovery.h --- a/source/nRF5xServiceDiscovery.h Mon Jan 11 10:19:05 2016 +0000 +++ b/source/nRF5xServiceDiscovery.h Mon Jan 11 10:19:06 2016 +0000 @@ -94,6 +94,12 @@ terminateServiceDiscovery(); } + void terminate(Gap::Handle_t connectionHandle) { + if(connHandle == connectionHandle) { + terminate(); + } + } + virtual void onTermination(ServiceDiscovery::TerminationCallback_t callback) { onTerminationCallback = callback; }