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:
- 671:33ec93d25695
- Parent:
- 670:5e4aecd9af5b
- Child:
- 710:b2e1a2660ec2
diff -r 5e4aecd9af5b -r 33ec93d25695 services/HeartRateService.h
--- a/services/HeartRateService.h Fri Jun 19 15:53:01 2015 +0100
+++ b/services/HeartRateService.h Fri Jun 19 15:53:01 2015 +0100
@@ -17,7 +17,7 @@
#ifndef __BLE_HEART_RATE_SERVICE_H__
#define __BLE_HEART_RATE_SERVICE_H__
-#include "BLEDevice.h"
+#include "BLE.h"
/**
* @class HeartRateService
@@ -47,13 +47,13 @@
* @brief Constructor with 8bit HRM Counter value.
*
* @param[ref] _ble
- * Reference to the underlying BLEDevice.
+ * Reference to the underlying BLE.
* @param[in] hrmCounter (8-bit)
* initial value for the hrm counter.
* @param[in] location
* Sensor's location.
*/
- HeartRateService(BLEDevice &_ble, uint8_t hrmCounter, uint8_t location) :
+ HeartRateService(BLE &_ble, uint8_t hrmCounter, uint8_t location) :
ble(_ble),
valueBytes(hrmCounter),
hrmRate(GattCharacteristic::UUID_HEART_RATE_MEASUREMENT_CHAR, valueBytes.getPointer(),
@@ -68,13 +68,13 @@
* @brief Constructor with a 16-bit HRM Counter value.
*
* @param[in] _ble
- * Reference to the underlying BLEDevice.
+ * Reference to the underlying BLE.
* @param[in] hrmCounter (8-bit)
* initial value for the hrm counter.
* @param[in] location
* Sensor's location.
*/
- HeartRateService(BLEDevice &_ble, uint16_t hrmCounter, uint8_t location) :
+ HeartRateService(BLE &_ble, uint16_t hrmCounter, uint8_t location) :
ble(_ble),
valueBytes(hrmCounter),
hrmRate(GattCharacteristic::UUID_HEART_RATE_MEASUREMENT_CHAR, valueBytes.getPointer(),
@@ -181,7 +181,7 @@
};
protected:
- BLEDevice &ble;
+ BLE &ble;
HeartRateValueBytes valueBytes;
uint8_t controlPointValue;