Merge pull request #10640 from LDong-Arm/therm_char

BLE HealthThermometerService: correct GATT characteristics
pull/10646/head
Martin Kojtal 2019-05-23 14:49:31 +01:00 committed by GitHub
commit 2a49ff6d50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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, };