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.
Dependents: BLE_ANCS_SDAPI BLE_temperature BLE_HeartRate BLE_ANCS_SDAPI_IRC ... more
Diff: services/HeartRateService.h
- Revision:
- 664:1624b24837d0
- Parent:
- 663:73177d7c6e75
- Child:
- 665:cfcc89fd5969
diff -r 73177d7c6e75 -r 1624b24837d0 services/HeartRateService.h
--- a/services/HeartRateService.h Fri Jun 19 15:53:00 2015 +0100
+++ b/services/HeartRateService.h Fri Jun 19 15:53:00 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;