问题描述
我可以在MAC OS上使用IOBluetooth框架与低功耗蓝牙设备进行通信吗?
Can i use IOBluetooth framework on MAC os to communicate with Bluetooth low energy devices?
Link说CoreBluetooth框架用于低功耗蓝牙,而IOBluetooth框架用于经典蓝牙接口.
Link says that CoreBluetooth framework is for Bluetooth low energy and IOBluetooth framework for classic bluetooth interface.
但是在IOBluetooth框架中,可以看到可用的coreBluetooth框架.这很令人困惑.
But in IOBluetooth framework one can see the coreBluetooth framework available.This is quite confusing.
我是MAC os应用程序开发的新手.输入会有所帮助.
I am new to MAC os application development. Inputs will be helpful.
谢谢
推荐答案
是的CoreBluetooth框架仅用于低能耗蓝牙设备(被称为外围设备),而IOBluetooth框架则主要用于搜索经典蓝牙设备.是的,还有低功耗蓝牙设备(通过将searchType设置为 kIOBluetoothDeviceSearchLE ).
Yea The CoreBluetooth Framework is designed only for Low Energy Bluetooth Devices (Which are referred to as Peripherals) whereas the IOBluetooth Framework is designed to search mainly for Classic Bluetooth Devices but Yes, also Low Energy Bluetooth Devices (by setting searchType to kIOBluetoothDeviceSearchLE).
但是,IOBluetooth框架不会返回比CoreBluetooth还要低的所有低能耗设备.我不知道为什么会在这一点上,但是我目前正在对此进行研究.
However, The IOBluetooth Framework will not return all the Low Energy devices than that of what CoreBluetooth would. I am not sure why this is at this point but I am currently looking into this.
希望这是一些有用的信息.
Hope this is a bit of useful info.
这篇关于IOBluetooth框架可以用于蓝牙低能耗吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!