var t2 = await characteristic.WriteClientCharacteristicConfigurationDescriptorAsync( GattClientCharacteristicConfigurationDescriptorValue.Indicate); IReadOnlyList<gattcharacteristic> characteristicList; characteristicList = gattService.GetCharacteristics(new Guid(UUID_CHARACTERISTIC_BLOOD_PRESSURE_MEASUREMENT)); if (characteristicList == null) return; if (characteristicList.Count <= 0) return; GattCharacteristic characteristic = characteristicList[0]; if (!characteristic.CharacteristicProperties.HasFlag(GattCharacteristicProperties.Indicate)) return; characteristic.ProtectionLevel = GattProtectionLevel.Plain; arrayCharacteristics[INDEX_BLOOD_PRESSURE] = characteristic; characteristic.ValueChanged += bloodPressure_ValueChanged; var t1 = await characteristic.ReadClientCharacteristicConfigurationDescriptorAsync(); var t2 = await characteristic.WriteClientCharacteristicConfigurationDescriptorAsync(GattClientCharacteristicConfigurationDescriptorValue.Indicate); var t3 = await characteristic.ReadClientCharacteristicConfigurationDescriptorAsync();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)