【问题标题】:Why am I getting "Attribute cannot be read HRESULT : 0x80650002" in C#?为什么我在 C# 中收到“无法读取属性 HRESULT:0x80650002”?
【发布时间】:2015-09-19 20:36:33
【问题描述】:

我收到异常 Attribute cannot be read HRESULT : 0x80650002 from the following line:-

GattReadResult readResult = 等待 tempMeasurementCharacterisitic[0].ReadValueAsync();

如何解决这个问题。我正在为 HealthThermometer 做这个。特征 UUID 0x2A1C

【问题讨论】:

  • 反对票有什么解释吗?

标签: c# windows-8.1 bluetooth-lowenergy gatt


【解决方案1】:

知道了。问题是我试图读取的特征不允许被这个特定的服务读取。如果您看到蓝牙 helath 温度计服务的规范,您会看到无法读取特征 uuid 0x2A1C。但是,您可以使用指示方法。所以不要阅读使用characteritic.valuechanged += value_change_event_handler;

【讨论】:

    猜你喜欢
    • 2022-06-24
    • 2020-06-12
    • 1970-01-01
    • 2021-10-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-02-11
    相关资源
    最近更新 更多