小编Che*_*eng的帖子

CoreBluetooth无法找到设备,但iOS可以

我有一个蓝牙条码扫描器,其规格说它是蓝牙2.0,2级.这很奇怪,因为我的iPhone 5(iOS7)可以找到并连接它.我以为iOS只连接BLE设备.但在我的应用程序中,我无法扫描此设备.我不知道这是不是因为它的蓝牙规格.我希望有人可以给我一些关于如何使用CoreBluetooth或其他一些有效库在我的应用程序中连接此设备的建议.

顺便说一下,我的代码是正确的,因为我可以在另一部iPhone上找到LightBlue应用程序.我的代码如下:

 // state is PowerOn
 [_centeralManager scanForPeripheralsWithServices:nil options:nil];
Run Code Online (Sandbox Code Playgroud)

iphone bluetooth ios core-bluetooth

2
推荐指数
1
解决办法
1606
查看次数

标签 统计

bluetooth ×1

core-bluetooth ×1

ios ×1

iphone ×1