High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Revision:
521:b2dae8d95c4d
Parent:
520:2ac0f11a183a
Child:
522:6bc4662d4e30
--- a/services/HeartRateService.h	Fri Jun 19 15:52:06 2015 +0100
+++ b/services/HeartRateService.h	Fri Jun 19 15:52:06 2015 +0100
@@ -125,7 +125,7 @@
         }
     }
 
-private:
+protected:
     void setupService(void) {
         GattCharacteristic *charTable[] = {&hrmRate, &hrmLocation, &controlPoint};
         GattService         hrmService(GattService::UUID_HEART_RATE_SERVICE, charTable, sizeof(charTable) / sizeof(GattCharacteristic *));
@@ -134,7 +134,7 @@
         ble.onDataWritten(this, &HeartRateService::onDataWritten);
     }
 
-private:
+protected:
     /* Private internal representation for the bytes used to work with the vaulue of the heart-rate characteristic. */
     struct HeartRateValueBytes {
         static const unsigned MAX_VALUE_BYTES  = 3; /* FLAGS + up to two bytes for heart-rate */
@@ -180,7 +180,7 @@
         uint8_t valueBytes[MAX_VALUE_BYTES];
     };
 
-private:
+protected:
     BLEDevice           &ble;
 
     HeartRateValueBytes  valueBytes;