我在 IOS 5.0 上使用 corebluetooth.framework 让低功耗蓝牙心率监测器工作。但有时我会遇到以下问题。
1) 有时当我开始扫描时(使用scanForPeripheralsWithServices 方法),它无法发现任何 BLE(低功耗蓝牙)设备,直到我手动关闭并打开 Iphone 蓝牙。有时,如果蓝牙关闭和打开不起作用,我也不得不重新启动手机。
2) 有时,当我尝试连接到我之前存储了 UUID 的设备时,我能够连接到该设备,即调用了 didConnectPeripheral 委托(delegate)方法,但它从未发现任何服务,即使我调用了 [peripheral discoverServices:nil] 即,我没有在委托(delegate)方法 didDiscoverServices 中从设备获取任何数据。为此,我还必须重启手机。
最佳答案
尝试在此处检查文件: http://lists.apple.com/archives/bluetooth-dev
如果您没有找到,请将问题发送到那里。许多 Apple 蓝牙工程师在该邮件列表中回答问题。
关于ios - Iphone(ios 5.0) 低功耗蓝牙 : can not get data from the device,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10704082/