ios - Iphone(ios 5.0) 低功耗蓝牙 : can not get data from the device

标签 ios iphone bluetooth-lowenergy core-bluetooth

我在 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/

相关文章:

java - 我的 BLE GATT 服务应用程序不断崩溃

ios - EXC_BAD_ACCESS 与 GMSMapView

ios - 类型错误 : Cannot read property 'name' of undefined ionic

android - Admob 和 Adwhirl 有什么区别?

iphone - Apple 是否在任何地方发布应用程序购买系统状态?是否可以确定他们的系统是否/何时停机?

python - Windows环境下如何使用python扫描BLE设备与通信

ios - 通过没有 TLS 或类似协议(protocol)的套接字与 localhost 通信是否安全?

php - 使用 php 处理来自 iphone 应用程序的 json base64 编码图像

iphone - UITabBarViewController 崩溃

bluetooth - 如何使用 Bluez 发送低功耗蓝牙 GATT 通知?