iOS上的蓝牙与蓝牙低功耗

时间:2016-08-10 09:56:25

标签: ios bluetooth core-bluetooth

我试图获取我附近所有蓝牙设备的名称(仅限名称)(经典蓝牙和BLE)。更具体地说,我需要知道用户何时靠近他的车载设备蓝牙。

我尝试使用CoreBluetoothFramework,但它只能与BLE设备建立连接。

我不确定所有车载套件是否都使用了Apple的MFi许可证#34;"所以我不确定我可以使用外部附件。

有什么建议吗?

感谢

2 个答案:

答案 0 :(得分:0)

将IOBluetooth用于蓝牙经典。请参阅IOBluetoothDevice和IOBluetoothDeviceInquiry类。如果您想查看任何设备,您需要同时使用IOBluetooth和Core Bluetooth。在Bluetooth classic下开发新的配置文件需要MFi,对于只检测设备的应用程序,您不需要它。

对于iOS,您可以尝试使用适用于Bluetooth经典的ExternalAccessories框架(不支持IOBluetooth)。有关详细信息,请参阅此问题:How to use bluetooth classic instead of le

答案 1 :(得分:0)

1. Bluetooth Classic and Bluetooth Low Energy both different.
2. BT classic is old version of BT(BT 2.0).
3. BLE 4.0 and later version control by core bluetooth library.
4. Cant communicate with BT classic via core bluetooth library.
5. Latest version of BLE 5.
6. BLE 5 available only on iPhone 8, 8+ and X(10).
7. Cant find/show BLE in iOS bluetooth settings.
6. Only BT classic find/show in iOS bluetooth settings.