小编Vik*_*yal的帖子

如何在iOS8上启用客户端配置描述符上的指示

我试图在特征值改变时从蓝牙设备获得通知.为此,我需要启用客户端特性配置(CCC)描述符的通知.我已经使用setNotifyValue(enabled: Bool, forCharacteristic characteristic: CBCharacteristic)了特性但没有获得值更改的更新.

我试图启用CCC的指示,writeValue(data: NSData, forDescriptor descriptor: CBDescriptor)但我的应用程序崩溃了这个API并显示错误为

无法使用此方法编写客户端特征配置描述符!

任何帮助!!

iphone bluetooth ios bluetooth-lowenergy swift

8
推荐指数
1
解决办法
1301
查看次数

标签 统计

bluetooth ×1

bluetooth-lowenergy ×1

ios ×1

iphone ×1

swift ×1