mirror of https://github.com/ARMmbed/mbed-os.git
BLE HealthThermometerService: correct GATT characteristics
As per official specification, temperature measurement requires the GATT characteristic "INDICATE" instead of "NOTIFY". Full credits to Jean-Marc Jobin (@jmjobin on GitHub) for identifying the issue and proposing this fix.pull/10640/head
parent
1dbb478bbb
commit
ce775d58e9
|
@ -55,7 +55,7 @@ public:
|
|||
HealthThermometerService(BLE &_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),
|
||||
tempMeasurement(GattCharacteristic::UUID_TEMPERATURE_MEASUREMENT_CHAR, (TemperatureValueBytes *)valueBytes.getPointer(), GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_INDICATE),
|
||||
tempLocation(GattCharacteristic::UUID_TEMPERATURE_TYPE_CHAR, &_location) {
|
||||
|
||||
GattCharacteristic *hrmChars[] = {&tempMeasurement, &tempLocation, };
|
||||
|
|
Loading…
Reference in New Issue