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

CBCentral manager doesn't discover peripherals

I have a navigation controller that has a root view controller and two tableview controllers. When I push the first tableview controller onto the stack, cbcentralmanager scans for BLE peripherals, and everything works great. However, when I push the…
J-Krush
  • 187
  • 3
  • 13
0
votes
0 answers

CBCentralManager state 5, App crashed

I am trying to connect a heart rate monitor with my app and it is working properly in 4S and iPAD 3, but now I am testing it with iPhone 5, in that case it is giving me crash, I have followed this link also but no help. Please see the attached…
york
  • 149
  • 1
  • 11
0
votes
1 answer

will setting CBCentralManager to nil lose connection?

I wonder if setting my CBCentralManager-instance to nil result in loss of connection to devices, do I need a "live" CBCentralManager to be able to keep the connection alive? I currently have a manager for scanning and connecting to new devices in a…
Nils Larson
  • 488
  • 4
  • 14
0
votes
1 answer

Pair with a bluetooth peripheral using ios 5

I am developing a proximity sensing application using bluetooth technology 4.0. I am able to discover the devices. But I am not able to pair with them. Nor can i call [peripheral readRssi] method. The way I want to achieve this is that if the…
0
votes
1 answer

How to NSLog() a periphal?

I'm having trouble identifying what a peripheral is which would normally lead me to be able to NSLog() it properly. - (void)centralManager:(CBCentralManager *)central didRetrievePeripherals:(NSArray *)peripherals { NSLog(@"discovered peripherals:…
tarabyte
  • 17,837
  • 15
  • 76
  • 117
-1
votes
3 answers

Why does my Swift iOS build get error: "Cannot find 'Sleep' in scope"

The .swift file is part of an iOS ObjC static lib. When I try to build, I get the build error. Sleep is because I want to make sure that stopscan is done and then want to completely and gracefully tear down CBCentralManager. import UIKit import…
Doug Null
  • 7,989
  • 15
  • 69
  • 148
-1
votes
1 answer

Get Data from iOS device using Bluetooth in Swift

I am working on an application that needs to get details of another Bluetooth device when it starts scanning the nearby devices. I have managed to get a few and I am stuck at few values that I am not receiving. Values which are needed. 1. UUID 2.…
iDeveloper
  • 940
  • 1
  • 10
  • 45
-1
votes
1 answer

iOS: Detect the beacon when the beacon is in sleep mode?

I have read a few articles and all of them talk about detecting the beacon when you are in the range and you cannot see the beacon without knowing its UUID. CBCentralManagerDelegate only gives you the ability to detect the beacon when it is active.…
jorjj
  • 1,479
  • 4
  • 20
  • 36
-1
votes
1 answer

My Corebluetooth framework is connecting to multiple device

I'm working on a project with corebluetooth framework.When my central manager starts scanning for peripherals it connects to a single peripheral after sometime maybe one minute it starts connecting to multiple peripherals with same UUID. Is there a…
-2
votes
1 answer

Objective- C how to send data with a Byte Array using Core Bluetooth

I'm trying to send a typedef object through Core Bluetooth that another device will have access to and be able to use. @implementation NeeAppDelegate typedef struct { float a, b, c, char …
1 2 3
15
16