nordic
Fork of nRF51822 by
Diff: source/nRF5xServiceDiscovery.h
- Revision:
- 549:920e941cbe1e
- Parent:
- 545:9e3d053ad4ec
- Child:
- 550:3f782c64d014
--- 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; }