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/HealthThermometerService.h
- Revision:
- 567:e4b38e43de7c
- Parent:
- 528:8d21604fe31d
- Child:
- 671:33ec93d25695
--- a/services/HealthThermometerService.h Fri Jun 19 15:52:11 2015 +0100
+++ b/services/HealthThermometerService.h Fri Jun 19 15:52:28 2015 +0100
@@ -17,7 +17,7 @@
#ifndef __BLE_HEALTH_THERMOMETER_SERVICE_H__
#define __BLE_HEALTH_THERMOMETER_SERVICE_H__
-#include "BLE.h"
+#include "BLEDevice.h"
/**
* @class HealthThermometerService
@@ -51,7 +51,7 @@
* @param[in] initialTemp initial value in celsius
* @param[in] _location
*/
- HealthThermometerService(BLE &_ble, float initialTemp, uint8_t _location) :
+ HealthThermometerService(BLEDevice &_ble, float initialTemp, uint8_t _location) :
ble(_ble),
valueBytes(initialTemp),
tempMeasurement(GattCharacteristic::UUID_TEMPERATURE_MEASUREMENT_CHAR, (TemperatureValueBytes *)valueBytes.getPointer(), GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY),
@@ -141,7 +141,7 @@
};
private:
- BLE &ble;
+ BLEDevice &ble;
TemperatureValueBytes valueBytes;
ReadOnlyGattCharacteristic<TemperatureValueBytes> tempMeasurement;
ReadOnlyGattCharacteristic<uint8_t> tempLocation;