【问题标题】:can IOBluetooth framework be used for bluetooth low energy?IOBluetooth 框架可以用于蓝牙低功耗吗?
【发布时间】:2015-03-05 10:43:27
【问题描述】:

我可以在 MAC 操作系统上使用 IOBluetooth 框架与蓝牙低功耗设备进行通信吗?

http://secutyhf.org/wordpress/zebel/2014/12/25/difference-between-corebluetooth-framework-and-iobluetooth-framework/

Link 表示 CoreBluetooth 框架适用于蓝牙低功耗,IOBluetooth 框架适用于经典蓝牙接口。

但是在 IOBluetooth 框架中可以看到 coreBluetooth 框架可用。 这很令人困惑。

我是 MAC os 应用程序开发的新手。输入会有帮助。

谢谢

【问题讨论】:

    标签: macos bluetooth


    【解决方案1】:

    是的,IOBluetooth 适用于 OS X 上的 Bluetooth Classic 和 BLE。CoreBluetooth 适用于 iOS 上的 BLE。

    【讨论】:

    • 我也有同样的问题。有人可以帮忙吗?
    【解决方案2】:

    是的,CoreBluetooth 框架仅针对低功耗蓝牙设备(称为外围设备)而设计,而 IOBluetooth 框架旨在主要搜索经典蓝牙设备,但也可以搜索低功耗蓝牙设备(通过将 searchType 设置为 kIOBluetoothDeviceSearchLE).

    但是,IOBluetooth 框架不会返回比 CoreBluetooth 所返回的所有低功耗设备。我不确定为什么会出现这种情况,但我目前正在调查。

    希望这是一些有用的信息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-08-23
      • 1970-01-01
      • 1970-01-01
      • 2018-10-12
      • 2012-05-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多