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);