mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #10640 from LDong-Arm/therm_char
BLE HealthThermometerService: correct GATT characteristicspull/10646/head
commit
2a49ff6d50
|
|
@ -55,7 +55,7 @@ public:
|
||||||
HealthThermometerService(BLE &_ble, float initialTemp, uint8_t _location) :
|
HealthThermometerService(BLE &_ble, float initialTemp, uint8_t _location) :
|
||||||
ble(_ble),
|
ble(_ble),
|
||||||
valueBytes(initialTemp),
|
valueBytes(initialTemp),
|
||||||
tempMeasurement(GattCharacteristic::UUID_TEMPERATURE_MEASUREMENT_CHAR, (TemperatureValueBytes *)valueBytes.getPointer(), GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY),
|
tempMeasurement(GattCharacteristic::UUID_TEMPERATURE_MEASUREMENT_CHAR, (TemperatureValueBytes *)valueBytes.getPointer(), GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_INDICATE),
|
||||||
tempLocation(GattCharacteristic::UUID_TEMPERATURE_TYPE_CHAR, &_location) {
|
tempLocation(GattCharacteristic::UUID_TEMPERATURE_TYPE_CHAR, &_location) {
|
||||||
|
|
||||||
GattCharacteristic *hrmChars[] = {&tempMeasurement, &tempLocation, };
|
GattCharacteristic *hrmChars[] = {&tempMeasurement, &tempLocation, };
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue