iOS上的蓝牙与蓝牙低功耗

问题描述 投票:0回答:2

我正在尝试获取我附近所有蓝牙设备的名称(仅限名称)(经典蓝牙和BLE)。更具体的是我需要知道用户何时靠近他的车载套件设备蓝牙。

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

我不确定所有车载套件都使用“Apple的MFi许可证”,因此我不确定我是否可以使用外部附件。

有什么建议?

谢谢

ios bluetooth core-bluetooth
2个回答
0
投票

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

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


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.
© www.soinside.com 2019 - 2024. All rights reserved.