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

How and when a BLE peripheral name is set for the first time

Changing peripheral name on hardware: When and how is it possible to change a BLE peripheral name? Is this something that needs to be written in the firmware? And if so how? I am looking at some iOS client code and using the CBPeripheral to detect…
mm24
  • 9,280
  • 12
  • 75
  • 170
0
votes
0 answers

UITextView getting blocked because peripheral:didUpdateValueForCharacteristic: getting called very fast

I am trying to show data in UITextView by appending data coming from peripheral:didUpdateValueForCharacteristic:error:. In this case peripheral:didUpdateValueForCharacteristic:error: is getting called very frequently, due to which UITextView…
0
votes
1 answer

Unable to get CBcharacteristics value in didUpdateNotificationStateForCharacteristic

I am having a BLE device to which I am successfully connected. In this case whenever I send a string "GET DATA" to the BLE device, the device will respond by sending a certain response back to me. I am using didDiscoverCharacteristicsForService to…
0
votes
1 answer

Issue in displaying name of CBService and CBCharacteristic on central in Core Bluetooth

I have created an application that act as a CBPeripheral.I am trying to display the name of Service and Characteristic on the connected Central but i am not able to find the way to do it. I have read the class reference of CBCharacteristic their is…
Sunil Kumar
  • 1,085
  • 2
  • 9
  • 17
0
votes
0 answers

didConnectPeripheral not called.?

Iam Working on BLE project, I got a sample project which is in this link. So when i run on my Device(iPhone 5C), -(void) centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral …
cdon
  • 264
  • 1
  • 13
0
votes
0 answers

CoreBluetooth - Writing data from Central to Peripheral

I referred Sample app provided by Apple for CoreBluetooth and I succeeded in sending Data from Peripheral to Central, Now I need to write Data from Central to Peripheral. After Googling i found that It can be done using [_discoveredPeripheral…
0
votes
0 answers

Windows 8.0 not discovering CBPeripheral

I have a sample iPhone application taken from https://github.com/KhaosT/CBPeripheralManager-Demo/tree/master/PeripheralModeTest. I am advertising my peripheral service as follows. - (void)peripheralManager:(CBPeripheralManager *)peripheral…
Tushar Goyal
  • 212
  • 3
  • 15
0
votes
0 answers

Core Bluetooth API Misuse When Scanning

I am currently getting an API misuse error when scanning - I know exactly why this happens because I need to wait to verify that the state of the central manager is powered on. My question comes from when my application is terminated by the system…
Eric Gao
  • 3,502
  • 2
  • 19
  • 29
0
votes
1 answer

Can we simulate "non-connectable" peripheral using Core-Bluetooth

I want my app to send a "non-connectable" advertisement? When I see the startAdvertsing method, it says that only CBAdvertisementDataLocalNameKey and CBAdvertisementDataServiceUUIDsKey are supported. Does this mean the…
Smart Home
  • 801
  • 7
  • 26
0
votes
0 answers

iOS 7.1 BLE peripherial advertisment issue

I wrote an application with is advertising and scanning in the same time. It is working well, but I have an issue. After some time mz peripherial stop advertising. I tried to restart but my phone and application it still not working. Here is the…
0
votes
1 answer

CBCentral fails to find peripheral's service unless bluetooth is restarted

I have two apps talking through CoreBluetooth, iOS and Today Extension (peripheral) and OSX (central). 1 - Setup process (iOS app x OSX app): They connect, exchange data that is stored and disconnect. 2 - App's main feature usage (iOS Today…
Lee Andrew
  • 798
  • 7
  • 28
0
votes
1 answer

CBService/CBCharacteristic UUIDString returns nil

I have an iOS app that generates a new UUID when it's going to talk for the first time with my OSX app, which is then stored, this way I can have different characteristics identifiers for different devices. After…
Lee Andrew
  • 798
  • 7
  • 28
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
1 2 3
14
15