Questions tagged [cbperipheralmanager]

CBPeripheralManager objects are used to manage published services within the local peripheral device’s Generic Attribute Profile (GATT) database and to advertise these services to central devices (represented by CBCentral objects).

In iOS, CBPeripheralManager objects are used to manage published services within the local peripheral device’s Generic Attribute Profile (GATT) database and to advertise these services to central devices (represented by CBCentral objects).

https://developer.apple.com/library/ios/documentation/CoreBluetooth/Reference/CBPeripheralManager_Class/index.html#//apple_ref/occ/cl/CBPeripheralManager

70 questions
0
votes
0 answers

LGBluetooth Scan in background or CBCentralManager scan in background

I am working on BLE Apps where i need to scan the device in Background mode. While debugging i found that it scan for the device but the discovery of devices is not called and returned. Everything works fine in Foreground Mode. Why can't my app scan…
0
votes
1 answer

CoreBluetooth: unable to discover characteristics for discovered peripheral

I have written some CoreBluetooth code, I can discover the devices but I seem to be unable to discover the characteristics for peripherals that I discover. Does anyone have a good sample code that I can use to verify my code? This is what I…
mm24
  • 9,280
  • 12
  • 75
  • 170
0
votes
0 answers

CoreBluetooth [CBPeripheralManager respondToRequest:withResult:] assertion failure

Getting a strange crash fairly commonly among iPhones sending data between each other over bluetooth. After a lot of effort I still cannot reproduce it in the debugger. Crash log: NSInternalInconsistencyException Invalid parameter not satisfying:…
Trespassers W
  • 379
  • 1
  • 5
  • 14
0
votes
1 answer

iOS: How to set up iOS device to serve as a Bluetooth keyboard?

I want an iOS device to tell the world it is a keyboard, and when people pair with it, it will be able to send keystrokes. Based on a forum article, it appears I need to provide 4 services: 1800 (device info), 180f (battery), 1812 (input device),…
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
0 answers

ble peripheral disconnected in background after some time

I am using background fetch mode in plist . when we connect the peripheral to device its working in background for few moment but after 10-15 minute its automatically disconnect. I want my peripheral is always connect . which method is called when…
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
1 answer

Failing To Discover Bluetooth LE Service Advertisement in iOS

I have created two iOS apps; one a Bluetooth LE peripheral that advertises a service, and one a Bluetooth LE central that scans for the advertised service. The peripheral is running on my iPhone5s, and the central is running on my iPad Mini. I…
JeffB6688
  • 3,782
  • 5
  • 38
  • 58
0
votes
1 answer

Bluetooth in iOS - when to stop scanning if no peripherals found

I'm using 'scanForPeripheralsWithServices' in iOS and successfully connecting to my intended device. But Apple's documentation doesn't cover the case where no valid peripheral is found. What is the best practice for determining no peripherals are…
Brendenw
  • 785
  • 1
  • 6
  • 22
-1
votes
1 answer

init with delegate: Type of expression is ambiguous without more context

Feeling pretty stupid because I had a very similar question not too long ago: init CBCentralManager: Type of expression is ambiguous without more context This time I'm instantiating a CBPeripheralManager inside viewDidLoad to an iVar (attempted both…
Mercutio
  • 1,152
  • 1
  • 14
  • 33
1 2 3 4
5