High level Bluetooth Low Energy API and radio abstraction layer

Fork of BLE_API by Bluetooth Low Energy

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;