-[CentralManager state]
will return the CBCentralManagerStatePoweredOff
result. On an iOS device with no Bluetooth LE support, -[CentralManager state]
will instead return CBCentralManagerStateUnsupported
.bluetoothHostControllerSwitchBehavior
NVRAM setting. If the setting is set to 'never', when the Bluetooth LE adapter is connected, the system Bluetooth driver does not switch to supporting the external HCI. bluetoothHostControllerSwitchBehavior
NVRAM variable. bluetoothHostControllerSwitchBehavior='never'
// when a new HCI is connected, the built-in driver stays attached to the built-in HCI bluetoothHostControllerSwitchBehavior='always'
// when a new HCI is connected, the built-in driver disconnects from the built in HCI and attaches to the external HCI bluetoothHostControllerSwitchBehavior='default'
// when a new HCI is connected, the built-in driver only disconnects from the built in HCI and attaches to the external HCI if the new module is not an Apple module.bluetoothHostControllerSwitchBehavior
setting. There are 2 cases to consider.bluetoothHostControllerSwitchBehavior='never'
setting in NVRAM. With the bluetoothHostControllerSwitchBehavior
setting set to 'never', the system Bluetooth driver will stay matched to the built-in Bluetooth HCI which supports Bluetooth LE and OS X application will use the built-in HCI for Bluetooth LE services.bluetoothHostControllerSwitchBehavior
setting to the 'default' behavior. When you want the test iOS Bluetooth LE applications in the iOS simulator, you will need to set the bluetoothHostControllerSwitchBehavior
to 'never'.Date | Notes |
---|---|
2012-04-23 | New document that describes how to configure an OS X system to test Core Bluetooth iOS Applications in the Simulator. |