2

我正在 iPhone 上试用 iOS 蓝牙中央管理器。

- (void)centralManagerDidUpdateState:(CBCentralManager *)central
{
    // Determine the state of the peripheral
    if ([central state] == CBCentralManagerStatePoweredOff) {
        NSLog(@"CoreBluetooth BLE hardware is powered off");
    }
    else if ([central state] == CBCentralManagerStatePoweredOn) {
        NSLog(@"CoreBluetooth BLE hardware is powered on and ready");
    }
    else if ([central state] == CBCentralManagerStateUnauthorized) {
        NSLog(@"CoreBluetooth BLE state is unauthorized");
    }
    else if ([central state] == CBCentralManagerStateUnknown) {
        NSLog(@"CoreBluetooth BLE state is unknown");
    }
    else if ([central state] == CBCentralManagerStateUnsupported) {
        NSLog(@"CoreBluetooth BLE hardware is unsupported on this platform");
    }
}

它总是去硬件是不受支持的选择。

另外,我可以通过蓝牙在 Android 手机之间发送图片,但是当我尝试发送到我的 iPhone 时,它​​被拒绝了。iOS蓝牙是封闭的吗?它不能与其他蓝牙设备一起使用?

4

1 回答 1

3

听起来您的 iOS 设备不支持低功耗蓝牙。

唯一受支持的 iOS 设备是 iPhone 4S、iPhone 5、iPhone 5c、iPhone 5s、iPad 第 3 代、iPad 第 4 代、iPad air、iPad mini 和 iPod Touch 第 5 代(以及更新的设备)。

于 2014-02-10T02:16:46.573 回答