Questions tagged [cbperipheral]

The CBPeripheral class represents remote peripheral devices that your app—by means of a central manager (an instance of CBCentralManager)—has discovered advertising or is currently connected to.

The CBPeripheral class represents remote peripheral devices that your app—by means of a central manager (an instance of CBCentralManager)—has discovered advertising or is currently connected to. On CBPeripheral, you can find the following methods:

Identifying a Peripheral

identifier property

name property

delegate property

UUID property Deprecated in iOS 7.0

Discovering Services

– discoverServices:

– discoverIncludedServices:forService:

services property

Discovering Characteristics and Characteristic Descriptors

– discoverCharacteristics:forService:

– discoverDescriptorsForCharacteristic:

Reading Characteristic and Characteristic Descriptor Values

– readValueForCharacteristic:

– readValueForDescriptor:

Writing Characteristic and Characteristic Descriptor Values

– writeValue:forCharacteristic:type:

– writeValue:forDescriptor:

Setting Notifications for a Characteristic’s Value

– setNotifyValue:forCharacteristic:

Monitoring a Peripheral’s Connection State

state property

isConnected property Deprecated in iOS 7.0

Accessing a Peripheral’s Received Signal Strength Indicator (RSSI) Data

– readRSSI

RSSI property

221 questions
0
votes
2 answers

iBeacon start advertising on application did enter background

Upon applicationDidEnterBackground or applicationWillResignActive I need to startAdvertising but I get this error: CoreBluetooth[API MISUSE] can only accept this command while in the powered on state. I use: -…
snksnk
  • 1,566
  • 4
  • 21
  • 46
0
votes
0 answers

Corebluetooth state preservation willRestoreState

This application implements central manager state preservation and restoration. (IOS 7.1) When the application is terminated by the system (e.i memory low ) the core bluetooth continues monitoring the peripheral's events on the application behalf,…
My1
  • 199
  • 1
  • 10
0
votes
1 answer

iOS CoreBluetooth and preventing other devices to connect to your peripheral

I am creating a core bluetooth application and connecting to a peripheral device, is there a way for the peripheral to reject which centrals may connect to it? What if a random person scanned and found my peripheral devices broadcasted UUID and then…
user2076774
  • 405
  • 1
  • 8
  • 21
0
votes
0 answers

Can peripheral advertisement/broadcasting be reactivated in the background?

From what I understand, once an app is terminated by iOS for memory use, my app will stop advertising as a peripheral (even if I've enabled the peripheral in the background). Is it possible to reactivate the peripheral advertisement when my app is…
0
votes
2 answers

CLBeacon - Storing and Extracting Info From PeripheralData NSDictionary?

When you start advertising a CLBeacon with peripheral data, can you pass in a NSString or UIImage into this dictionary that you could then have show up when the beacon is discovered? For example, if I wanted to create write a message to a friend and…
Connor
  • 67
  • 1
  • 2
  • 5
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

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

Swift - How to update UILabel from a function

i'm making a bluetooth app and i want to put 2 labels to control if i'm connected and to display the RSSI so i have write this function func updateLabel(){ LRSSI.text = String(RSSINb) if(Connected == true){ LEtat.text = "Connected" …
Rombond
  • 129
  • 2
  • 11
-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
14
15