我正在开发一个 iOS 核心蓝牙应用程序,我可以使用 iPad3 连接 BLE 设备。我可以到达街区didDiscoverServices
,但无法从这里继续。
我的问题是;
- 如何从蓝牙设备读取特征?
- 如何读取蓝牙设备的其他信息?
帮助我或提供任何建议。
感谢威廉森的回复。
我从提到的块中得到了以下信息:
[0] - Service : <CBConcreteService: 0x1769a0> UUID: Generic Attribute Profile
[1] - Service : <CBConcreteService: 0x174470> UUID: Generic Access Profile
[2] - Service : <CBConcreteService: 0x1744e0> UUID: Unknown (<00005301 00000041 4c505749 53450000>)
Characteristic
[0] - Characteristic : <CBConcreteCharacteristic: 0x15d410> UUID: Service Changed
[0] - Characteristic : <CBConcreteCharacteristic: 0x1805b0> UUID: Device Name
[1] - Characteristic : <CBConcreteCharacteristic: 0x1806a0> UUID: Appearence
[0] - Characteristic : <CBConcreteCharacteristic: 0x183810> UUID: Unknown (<00004301 00000041 4c505749 53450000>)
[1] - Characteristic : <CBConcreteCharacteristic: 0x1838a0> UUID: Unknown (<00004302 00000041 4c505749 53450000>)
现在如何从 didUpdateValueForCharacteristic 块中的这个特性中获取确切的值?