小编fdc*_*cpp的帖子

核心蓝牙和IOBluetooth有什么区别

这个问题已经在 2013 年在 Stack Overflow上提出过,但需要更新。自 macOS 10.13 以来,针对 macOS 的核心蓝牙功能进行了更改,使其更加符合 iOS。

\n

该问题的答案是

\n
\n

CoreBluetooth 是用于蓝牙 LE 通信的 iOS 框架。IOBluetooth 是一个 OS X 框架

\n
\n

这已经不再是事实了,Core Bluetooth 不只是iOS 框架,尽管 IOBluetoothmacOS独有的

\n
\n

CoreBluetooth 用于访问低功耗蓝牙 API。IOBluetooth 用于蓝牙经典接口

\n
\n

这也是不正确的,因为核心蓝牙并非专门用于 BLE。

\n

CoreBluetooth 文档指出:

\n
\n

与蓝牙低功耗和 BR/EDR (\xe2\x80\x9cClassic\xe2\x80\x9d) 设备通信。

\n
\n

这看起来很简单;核心蓝牙用于蓝牙通信,包括 BLE 和 Classic。

\n

IOBluetooth 文档指出:

\n
\n

获得对蓝牙设备的用户空间访问。

\n
\n

但这并不是特别有启发性。

\n

在 macOS 10.13+ 上的 CoreBluetooth …

macos bluetooth iobluetooth core-bluetooth

3
推荐指数
1
解决办法
778
查看次数

标签 统计

bluetooth ×1

core-bluetooth ×1

iobluetooth ×1

macos ×1