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.
Dependencies: nrf51-sdk
Dependents: microbit-dal microbit-ble-open microbit-dal-eddystone microbit-dal-ble-accelerometer-example ... more
Diff: btle/btle_discovery.h
- Revision:
- 240:75b69581d1dd
- Parent:
- 239:693a1f145b5a
- Child:
- 241:d264f9ec06a3
--- a/btle/btle_discovery.h Fri Jun 19 15:55:21 2015 +0100 +++ b/btle/btle_discovery.h Fri Jun 19 15:55:21 2015 +0100 @@ -137,9 +137,6 @@ memset(characteristics, 0, sizeof(DiscoveredCharacteristic) * BLE_DB_DISCOVERY_MAX_CHAR_PER_SRV); } - void setupDiscoveredServices(const ble_gattc_evt_prim_srvc_disc_rsp_t *response); - void setupDiscoveredCharacteristics(const ble_gattc_evt_char_disc_rsp_t *response); - void progressCharacteristicDiscovery() { while (characteristicDiscoveryInProgress && (currCharInd < charCount)) { /* THIS IS WHERE THE CALLBACK WILL GO */ @@ -199,7 +196,7 @@ serviceDiscoveryInProgress = false; } -private: +protected: ServiceDiscovery() { /* empty */ } @@ -220,4 +217,10 @@ bool characteristicDiscoveryInProgress; }; +class NordicServiceDiscovery : public ServiceDiscovery { +public: + void setupDiscoveredServices(const ble_gattc_evt_prim_srvc_disc_rsp_t *response); + void setupDiscoveredCharacteristics(const ble_gattc_evt_char_disc_rsp_t *response); +}; + #endif /*_BTLE_DISCOVERY_H_*/ \ No newline at end of file