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

Peripheral not connecting - Swift

Within my Swift app, I have a view that is supposed to find a bluetooth device and connect to it. The bluetooth device is powered on. I am able to scan and find the device, after which I call on the function to connect to it, but I get no feedback.…
5
votes
1 answer

How to improve performance of CBCentralManager while CBPeripheralManager is active

We've created an iOS app that implements a CBCentralManager to connect to a device that we've created, that transmits data at 10Hz. It's vitally important that this data comes through and displays quickly, so we have built tight latency checks…
5
votes
0 answers

Error Domain=CBErrorDomain Code=7 "The specified device has disconnected from us

We need Get Data form BluetooothDevices to IOS devices.We are using core_bluetooth.frameworks. didDisconnectPeripheral call after didConnectPeripheral ever time.We got error is error is Error Domain=CBErrorDomain Code=7 "The specified device has…
5
votes
2 answers

Sending bluetooth LE data in advertisement on iOS

My app is running as a Bluetooth LE peripheral, and I'm trying to send just a few bytes of custom data in the Advertisement. func btStartBroadcasting(peripheral: CBPeripheralManager!) { // create an array of bytes to send var byteArray =…
4
votes
0 answers

Why is my peripheral device not connected to others?

My iPad mini(iOS7.1.2) has my app using CoreBluetooth to act as a peripheral device. Its state(CBPeripheralManager::state) is PoweredOn, and there're no any other errors when adding and starting advertising my service. However, any central devices…
3
votes
2 answers

didDisconnectPeripheral called by itself

I've an application which should use CoreBluetooth to connect to varies devices at once. My issue here is that unexpected disconnections occur. Once I got connected to any peripheral the method func centralManager(_ central: CBCentralManager,…
3
votes
0 answers

peripheralManagerIsReadyToUpdateSubscribers not called after failed update

Whenever I Disconnect and try to connect. I am not receiving peripheralManagerIsReadyToUpdateSubscribers and first update only fails. I am following the below steps Start Advertisement and establish connection with central. Now try to update value…
3
votes
0 answers

How do I broadcast a Bluetooth signal while in the foreground and background in Swift?

How do I broadcast a bluetooth signal in Swift? My goal is to then discover this device with another device. I have tried using the CBPeripheralManager.startAdvertising function but CBPeripheralManager.isAdvertising always returns false. Also how…
Jake
  • 319
  • 1
  • 7
  • 21
2
votes
1 answer

How to set/get/request MTU from android to iOS or viceversa BLE?

We are sending mtu request from android to iOS Android - Requesting mtu from this function onServicesDiscovered callback But I do not know the way how to find out if peer device support requested MTU and what is actually negotiated MTU. The…
2
votes
1 answer

BLE: Advertising local name and service UUID from background iOS

According to iOS documentation, when an iOS application that utilizes BLE as a peripheral moves to background mode, peripheral name is not advertised and all service UUIDs are placed in a special ‘overflow’ area, they can be discovered only by an…
2
votes
1 answer

iOS device as an iBeacon, why is it not working?

I'm trying to make an iOS app that uses PeripheralManager to broadcast an UUID to a Central. I think my permissions and Capabilities are in order, but i still cant find my beacon when i search for it with the central. Is there something i…
2
votes
0 answers

Is there a way for a CoreBluetooth peripheral to deny a subscription to a central?

I have a peripheral that I'd like to protect against access by unwanted centrals. I haven't found a method that allows me to analyze a central before the central can subscribe. Is there a method that does this?
johnnietheblack
  • 13,050
  • 28
  • 95
  • 133
2
votes
1 answer

What does it mean for background processing of Bluetooth data to be 'session-based' in iOS?

In Apple's documentation for Background Execution it is explained that 'Any app that supports the background processing of Bluetooth data must be session-based. ... Apps must provide an interface that allows the user to start and stop the delivery…
2
votes
0 answers

Setting up and sending a string with Peripheral Manager swift

I have gone and set up my CBCentralManager to search for devices and have the basic structure ready to receive and check on updated info. I just cant seem to grasp on how to make a CBPeripheralManager ViewController and how to send my CBCentral…
2
votes
0 answers

CoreBluetooth, Notifications and firmware updates

I am developing a client application in swift that reads some values from a ble peripheral. The thing is that after a firmware update on the peripheral, the app stops receiving notifications from characteristics that are marked as notification. In…
1
2 3 4 5