None

Dependencies:   nrf51-sdk

Dependents:   microbit-dal

Fork of nRF51822 by Lancaster University

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