test

Fork of nRF51822 by Nordic Semiconductor

Revision:
288:1d85c4a4d397
Parent:
286:042b01e59cf8
Child:
289:b33301b019e6
--- a/btle/btle_discovery.h	Fri Jun 19 15:55:27 2015 +0100
+++ b/btle/btle_discovery.h	Fri Jun 19 15:55:27 2015 +0100
@@ -33,6 +33,18 @@
     static const unsigned BLE_DB_DISCOVERY_MAX_CHAR_PER_SRV = 4;      /**< Maximum number of characteristics per service we can retain information for. */
 
 public:
+    NordicServiceDiscovery() : serviceIndex(0),
+                               numServices(0),
+                               characteristicIndex(0),
+                               numCharacteristics(0),
+                               state(INACTIVE),
+                               services(),
+                               characteristics(),
+                               onTerminationCallback(NULL) {
+        /* empty */
+    }
+
+public:
     ble_error_t launchCharacteristicDiscovery(Gap::Handle_t connectionHandle, Gap::Handle_t startHandle, Gap::Handle_t endHandle);
 
 public: