selectedCharacteristic.WriteClientCharacteristicConfigurationDescriptorAsync即使在cccdValue =指示时也不返回成功

时间:2018-05-24 20:17:48

标签: c# visual-studio uwp bluetooth-lowenergy

我正在修改Visual Studio中的UWP上的BLE代码。我能够阅读服务和字符,但当我订阅值更改时,我收到一个错误。 在下面的代码中,我的状态为“无法访问”#39;即使cccdValue = indicate

status = await 
selectedCharacteristic.WriteClientCharacteristicConfigurationDescriptorAsync(cccdValue);

if (status == GattCommunicationStatus.Success)
{
    AddValueChangedHandler();
    rootPage.NotifyUser("Successfully subscribed for value changes", NotifyType.StatusMessage);
}

由于

0 个答案:

没有答案