fdsf
Fork of nRF51822 by
Diff: btle/btle_discovery.h
- Revision:
- 240:75b69581d1dd
- Parent:
- 239:693a1f145b5a
- Child:
- 241:d264f9ec06a3
diff -r 693a1f145b5a -r 75b69581d1dd btle/btle_discovery.h --- 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