Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: microbit-dal microbit-dal microbit-ble-open microbit-dal ... more
Fork of BLE_API by
Diff: public/ServiceDiscovery.h
- Revision:
- 457:6ebc9bbde90b
- Parent:
- 456:ff4ffb69e19f
- Child:
- 458:5546ebd25359
--- a/public/ServiceDiscovery.h Fri Jun 19 15:51:57 2015 +0100
+++ b/public/ServiceDiscovery.h Fri Jun 19 15:51:58 2015 +0100
@@ -136,6 +136,7 @@
public:
typedef void (*ServiceCallback_t)(const DiscoveredService &);
typedef void (*CharacteristicCallback_t)(const DiscoveredCharacteristic &);
+ typedef void (*TerminationCallback_t)(Gap::Handle_t connectionHandle);
public:
static ble_error_t launch(Gap::Handle_t connectionHandle,
@@ -146,6 +147,9 @@
static void terminate(void);
+ static bool isActive(void);
+ static void onTermination(TerminationCallback_t callback);
+
protected:
Gap::Handle_t connHandle; /**< Connection handle as provided by the SoftDevice. */
UUID matchingServiceUUID;
