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
0
votes
1 answer

Update characteristic value from CBCentral

I have successfully managed to get my iOS app (peripheral) send messages to my OSX app (central). I am now having problems when trying to have the Central update a characteristics value and read it from the Peripheral. If I change…
Lee Andrew
  • 798
  • 7
  • 28
0
votes
2 answers

Peripheral connection state goes to IDLE when switching tabs, but remains in first tab

So far I am able to connect to the peripheral fine and can send commands to it, but when I select a new tab the connection state goes to IDLE and I can't send anything from the next tab, but I can go back to the first tab and can send the commands…
0
votes
0 answers

Bluetooth central manager not connecting to new service

I am trying to create an app in which two different devices can communicate to each other using the same UIControlView to send notifications back and forth using iBeacon and send data back and forth using bluetoothle. I first send out a proximity…
user1114881
  • 731
  • 1
  • 12
  • 25
0
votes
2 answers

Change UILabel in View Controller from Singleton

I am very new to iOS development and I'm struggling to make an app which connects to BLE devices. As I have many view controllers I need to keep the peripheral always connected in all of them. To achieve this, I implemented all the BLE connection…
0
votes
1 answer

Is there any way to opt out of Core Bluetooth state restoration?

Do someone know how to opt out of CB state restoration once the CBCentralManager has already been instantiated with a restoration identifier? Basically I want to turn CB state restoration off again depending on some conditions (= I don't want to use…
Buju
  • 1,546
  • 3
  • 16
  • 27
0
votes
3 answers

CoreBluetooth - centralManagers method didDiscoverPeripheral becomes least frequent to nothing in sleep mode

I am using CoreBluetooth and the callback method didDiscoverPeripheral gets called frequently when the app is foregrounded or backgrounded or the device is locked with device screen still turned on. But as soon as the screen is turned off / blacked…
npn
  • 103
  • 1
  • 12
0
votes
2 answers

What's the difference between CLBeacon and CBcentralManager

I want to detects beacon/ibeacon devices near my iphone's proximity. I am not sure which class i should use Should i use CLBeacon and CLBeaconRegion and start monitoring region OR Should i use CBcentralManager and…
Mihir Mehta
  • 13,743
  • 3
  • 64
  • 88
0
votes
1 answer

Core Bluetooth State Restoration

I am working on an app that reacts on disconnects of peripherals and I am now trying to adopt the ne state preservation and restoration introduced in iOS 7. I did everything like the documentation says, means: I added the background mode for…
kober
  • 289
  • 5
  • 12
0
votes
1 answer

iOS CBCentralManager doesn't detect CBPeripheral in background when it comes into range

I am working on a test BTLE app. The user can select to start central or peripheral mode. if 2 devices are both active and in range they instantly detect, connect and pass data, but... If device1 is started in central mode and then placed into…
mflac
  • 353
  • 3
  • 16
0
votes
2 answers

After CBCentralManager initialize centralManagerDidUpdateState it's not call

I'm working on my first bluetooth app. For now i've an AppUIview that implements a button that call a function in the AppCentralManager where the bluetooth function will be implemented: - (IBAction) Scan{ NSLog(@"scan…
0
votes
1 answer

CoreBluetooth CBCentralManager delegate methods not getting triggered

I have used CoreBluetooth framework to scan for all services and get the peripheral it works well when i launch my application first time, but if i popover to previous class and come again from that class , my delegate methods of CBCentralManger is…
Rajjjjjj
  • 424
  • 3
  • 16
0
votes
1 answer

CBCentralManager iOS Issue?

I know this questions has been asked multiple times, But My case is slightly different from others. I am successfully able to connect and receive values from a heart rate device within my app (iPhone 5, iPhone 4S, iPad 3) with different ios…
york
  • 149
  • 1
  • 11
0
votes
1 answer

Reading NSdata over BLE using LightBlueApplication

I am trying to read the value that I store in the lightBlue application but the problem is it cannot seems to get the string. It detects that I am reading the data but when I convert the data to a string it outputs @"" -(void)…
user2076774
  • 405
  • 1
  • 8
  • 21
0
votes
2 answers

CoreBluetooth Detecting peripherals

I have a few questions regarding coreBluetooth that I am not sure about If I implement a CBCentralManager on an iOS device and run "ScanForPeripherals" using nil as my CBUUID tag will I be able to detect other phones with bluetooth on? Or does it…
user2076774
  • 405
  • 1
  • 8
  • 21
0
votes
1 answer

bluetooth central region monitoring in background and/or locked (no display)

MY QUESTION IS: How can I enable continuous monitoring from the central while the phone is locked (no display turned on) or while its in the background? First of all, I am using the iBeaconDemo courtesy of Christopher Mann @…
1 2 3
15
16