Questions tagged [cbcentralmanager]

CBCentralManager is an object used by CoreBluetooth on OS X and iOS to manage peripheral devices.

CBCentralManager is an object used by CoreBluetooth on OS X and iOS to manage peripheral devices. On CBCentralManager, you can find the following methods:

Initializing a Central Manager

– initWithDelegate:queue:

– initWithDelegate:queue:options:

Establishing or Canceling Connections with Peripherals

– connectPeripheral:options:

– cancelPeripheralConnection:

Retrieving Lists of Peripherals

– retrieveConnectedPeripheralsWithServices:

– retrievePeripheralsWithIdentifiers:

– retrieveConnectedPeripherals Deprecated in iOS 7.0

– retrievePeripherals: Deprecated in iOS 7.0

Scanning or Stopping Scans of Peripherals

– scanForPeripheralsWithServices:options:

– stopScan

Monitoring Properties

state property

delegate property

235 questions
3
votes
1 answer

centralManagerDidUpdateState returns power off iOS 11-Beta 4

I'm working with CoreBluetooth and I'm using CBCentralManager and its delegates. But the problem is that when I run my code in iOS 11-Beta 4 I get power off state in delegate - (void)centralManagerDidUpdateState:(CBCentralManager *)central while…
Hassan Shahbazi
  • 1,543
  • 9
  • 26
3
votes
1 answer

Find out users decision of asking to bond a BLe device (Objective-C, iOS 10)

is it possible to get the users decision of the bonding request of iOS? Choice 1: Abbort Choice 2: Connect/Bond Screenshot of Bonding-request: I tried to use the centralManagerDidUpdateState, but it is called only one time with…
SbstnErb
  • 101
  • 1
  • 8
3
votes
1 answer

iOS stops waking up the app upon incoming BLE connection from peripheral

we have a BLE peripheral that connects to the phone every hour and passes some data. Here is how the process works: Upon launch with key UIApplicationLaunchOptionsBluetoothCentralsKey in application(didFinishLaunchingWithOptions launchOptions) app…
Maxim
  • 962
  • 2
  • 9
  • 21
3
votes
1 answer

CoreBluetooth State Preservation and Restoration

I have the following scenario: iOS app (peripheral) X OSX app (central) I instantiate my peripheral manager with CBPeripheralManagerOptionRestoreIdentifierKey. In my peripheral's didFinishLaunchingWithOptions I send a local notification after…
Lee Andrew
  • 798
  • 7
  • 28
3
votes
1 answer

State Preservation and Restoration BLE- Calls didFinishLaunchingWithOptions but doesn't call any delegate method for CBCentral

I am working on an iPhone app and have implemented CBCentralManager. Also updated plist with background modes, initialized centralmanager with an identifier. Also have added this code in the didFinishLaunchingWithOptions if var…
Paragon
  • 982
  • 2
  • 10
  • 37
3
votes
2 answers

CoreBluetooth AdvertisementData doesn't contain CBAdvertisementDataLocalNameKey?

I'm currently building a CoreBluetooth application that I want to scan for available devices, the problem is that the AdvertismentData dictionary in "didDiscoverPeripheral" does not contain CBAdvertisementDataLocalNameKey - it only contains…
3
votes
1 answer

iOS Core Bluetooth Pin Code

I have a BLE peripheral that requires a PIN code. I am connecting to this peripheral using Core Bluetooth CBCentralManager on iOS 7. When I connect to this peripheral, 'didConnectPeripheral' (central delegate) gets called before the PIN code…
3
votes
1 answer

Improve file transfer speed using CoreBluetooth

I currently have my OSX app (central) sending a 4Kb image to my iOS app (peripheral) trough a writeable characteristic using writeValue. Because the image size exceeds the limit, I'm using writeValue multiple times with the following function: func…
Lee Andrew
  • 798
  • 7
  • 28
3
votes
1 answer

Are CBCentral and CBPeripheral identifiers the same for one device

The title explains it all. All I want to know is that if a device is being used as a peripheral and a central and gets near another device being used as a peripheral and a central, would the peripheral manager and central manager on each device see…
3
votes
0 answers

Peripheral transmit queue issue

I’m working on a simple wrapper around CoreBluetooth to send any data to any device. During developing I encountered a lot of bugs in framework, they were very annoying and to make my wrapper stable I had to shorten some of functionality for…
3
votes
1 answer

Platform doesn't support Bluetooth Low Energy Central/Client role

In settings I see Bluetooth is turned on. But - (void) centralManagerDidUpdateState:(CBCentralManager *)central returns central.state == CBCentralManagerStateUnsupported What does it mean? iPad model mc796rs/a and iOS 7.0.3
Mike
  • 481
  • 10
  • 24
3
votes
1 answer

iOS CoreBluetooth reconnecting while app in background

My question is "how do I go about reconnecting to a ble device once the app is not in the foreground"? I've done my research and it seems that the best way to connect to a paired ble device is through retrivePeripherals:UUID. Once it finds something…
2
votes
1 answer

Why does CBCentralManager report "Peer removed pairing information" with 1st phone after 2nd phone is paired with device?

Background I'm using a couple of different hobbyist BLE devices (HM-10). This particular one is an example of one of them. It's a simple 4-pin device and I've set all the parameters on it using an Arduino Nano and I can see the data coming into it…
raddevus
  • 8,142
  • 7
  • 66
  • 87
2
votes
1 answer

Core Bluetooth - Communicate with LED Light

I am working on Core Bluetooth communicate with LED Light. When peripheral write the value to communication, take some time to get response from hardware(LED).As we are using UISLider to write values we are facing delay in hardware. I think a queue…
2
votes
1 answer

Discovered UUIDs do not match the UUIDs inspected with nRFConnect

I'm using the scanForPeripherals method to retrieve UUIDs from devices near me. I am able to list UUIDs, however, they are not similar with the UUIDs discovered using nRF Connect application. I tried various testing scenarios, in which I've…
1 2
3
15 16