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.
Fork of nRF51822 by
Diff: btle/btle_discovery.h
- Revision:
- 288:1d85c4a4d397
- Parent:
- 286:042b01e59cf8
- Child:
- 289:b33301b019e6
diff -r faa0dc7ae513 -r 1d85c4a4d397 btle/btle_discovery.h --- 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: