2012-05-27 132 views
2

CoreBluetooth仅支持蓝牙4.0?CoreBluetooth仅支持蓝牙4.0?

使用CoreBlutooth,我无法从Mac Mini找到我的iPod3。谁能告诉我是否可以在旧苹果设备(如iPod3)上开发蓝牙程序?

NSDictionary * options = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:FALSE], CBCentralManagerScanOptionAllowDuplicatesKey, nil]; 
[manager scanForPeripheralsWithServices:[NSArray arrayWithObject:[CBUUID UUIDWithString:@"180A"]] options:options]; 

回答

1

拿在framework参考一下:

的CoreBluetooth框架提供了访问蓝牙4.0低功耗设备。

所以是的,CoreBluetooth只适用于iPhone 4S和新iPad。

开发使用蓝牙您的旧设备,使用IOBluetoothUserLib

0

还记得蓝牙LE设备发现功能仅适用于应用程序可用,即你无法通过标准iOS的蓝牙设置中找到LE设备,你必须写一个应用程序。