
aa
Dependents: Peripheral_1_serial_copy Peripheral_1_serial 151006_1st_Scenario_normal
Fork of BLE_API by
Diff: ble/services/HealthThermometerService.h
- Revision:
- 722:eab9499e4250
- Parent:
- 712:b04b5db36865
- Child:
- 723:71507679c9b2
--- a/ble/services/HealthThermometerService.h Thu Jul 02 09:06:12 2015 +0100 +++ b/ble/services/HealthThermometerService.h Thu Jul 02 09:06:12 2015 +0100 @@ -73,7 +73,7 @@ void updateTemperature(float temperature) { if (ble.getGapState().connected) { valueBytes.updateTemperature(temperature); - ble.updateCharacteristicValue(tempMeasurement.getValueAttribute().getHandle(), valueBytes.getPointer(), sizeof(TemperatureValueBytes)); + ble.gattServer().write(tempMeasurement.getValueHandle(), valueBytes.getPointer(), sizeof(TemperatureValueBytes)); } } @@ -83,7 +83,7 @@ * new location value. */ void updateLocation(SensorLocation_t loc) { - ble.updateCharacteristicValue(tempLocation.getValueHandle(), reinterpret_cast<uint8_t *>(&loc), sizeof(uint8_t)); + ble.gattServer().write(tempLocation.getValueHandle(), reinterpret_cast<uint8_t *>(&loc), sizeof(uint8_t)); } private: