From 2ab99680acce45d972900572565d2e7836aa597b Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Tue, 26 May 2015 08:55:37 +0100 Subject: [PATCH] Add a default constructor for NordicServiceDiscovery() --- btle/btle_discovery.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/btle/btle_discovery.h b/btle/btle_discovery.h index c6a5bd4..c381588 100644 --- a/btle/btle_discovery.h +++ b/btle/btle_discovery.h @@ -32,6 +32,18 @@ private: static const unsigned BLE_DB_DISCOVERY_MAX_SRV = 4; /**< Maximum number of services we can retain information for after a single discovery. */ 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);