【发布时间】:2013-12-12 11:05:09
【问题描述】:
我有一个蓝牙 4.0 传感器,它向我发送了许多服务和特性,例如这个草稿示例:
<service uuid="ServiceUUID" advertise="true">
<description>Test Service</description>
<characteristic uuid="CharacteristUUID" id="test_rate">
<properties read="true" notify = "true"/>
<value length="1" type="hex"></value>
<description>Test Rate</description>
</characteristic>
</service>
我从 android 示例 BluetoothLEGatt 开始,我想动态获取特征描述名称,例如(测试速率),因为在示例中他们使用 SampleGattAttributes 类以编程方式获取描述。
有人知道这怎么可能吗?
问候。
【问题讨论】:
标签: android bluetooth bluetooth-lowenergy android-4.4-kitkat android-4.3-jelly-bean