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: BLE_ANCS_SDAPI BLE_temperature BLE_HeartRate writable_gatt ... more
Diff: btle/btle_discovery.h
- Revision:
- 279:6e5e79f1fb61
- Parent:
- 263:d5da37e9a93b
- Child:
- 280:cbaa4cb83548
diff -r 26e3f0ef1e14 -r 6e5e79f1fb61 btle/btle_discovery.h
--- a/btle/btle_discovery.h	Fri Jun 19 15:55:26 2015 +0100
+++ b/btle/btle_discovery.h	Fri Jun 19 15:55:26 2015 +0100
@@ -49,6 +49,10 @@
         serviceIndex++; /* Progress service index to keep discovery alive. */
     }
 
+    bool isActive(void) const {
+        return (sDiscoveryActive || cDiscoveryActive);
+    }
+
 private:
     void resetDiscoveredServices(void) {
         numServices  = 0;
    
