Questions tagged [core-bluetooth]

CoreBluetooth is a framework for iOS and Mac OS X to interact with Bluetooth Low Energy ("BLE") accessories.

The and Mac OS X CoreBluetooth allows developers to interact specifically with Bluetooth Low-Energy ("LE") accessories. The interfaces of this framework allow you to scan for LE accessories, connect and disconnect to ones you find, read and write attributes within a service, register for service and attribute change notifications, and much more.

The CoreBluetooth framework for iOS can work in central role (iOS 5.0+) or in peripheral role (iOS 6.0+).

2350 questions
82
votes
5 answers

How to connect Android device to an iOS device over BLE (Bluetooth Low Energy)

I'm trying to make an application which uses the new Bluetooth Low Energy API of Android. For this, I started with the BLE sample coming with API level 18. As I read that Android can not act as a Peripheral, I put the Android phone in central mode,…
78
votes
4 answers

What exactly can CoreBluetooth applications do whilst in the background?

The subject says it all, really. Documentation, insofar as it exists at all, suggests that apps written against the CoreBluetooth framework running on iOS devices can add "bluetooth-central" to their background privilege list and so process some…
Chris Smowton
  • 2,330
  • 2
  • 15
  • 14
57
votes
1 answer

Setting Notifications on Characteristic results in Invalid Handle error

Using CoreBluetooth I want to send data from iPhone to Mac. For this I wrote code like iPhone as 'Peripheral' and Mac as 'Central'. It works perfectly, but sometimes it disconnects directly and then it continuously connects and disconnects. Some…
Suresh
  • 1,005
  • 9
  • 16
57
votes
6 answers

iBeacon Notification when the app is not running

I managed to make an iBeacon which triggers a local push notification on my iPhone when the beacon is in range. It's perfectly working when the app is in background mode. My question is: Can I trigger the notification even when the app is not…
Lapidus
  • 905
  • 1
  • 10
  • 16
53
votes
2 answers

Use BlueZ Stack As A Peripheral (Advertiser)

Goal: Use BlueZ and an Bluetooth 4LE dongle to create a peripheral that advertises the bluetooth equivalent of "Hello World". Where I'm At: I've currently got the BlueZ stack setup and downloaded, I can use the hci tool to recognize and see the…
Ceryni
  • 694
  • 1
  • 7
  • 14
52
votes
6 answers

Does the iPhone simulator in Xcode support Bluetooth Low Energy?

I'm trying some iOS test applications on the new Mac mini, that supports Bluetooth Low Energy. The CoreBluetooth framework is used in those. However, I'm not able to get Bluetooth working in the iPhone simulator, that is part of Xcode. When I…
Etan
  • 15,505
  • 17
  • 83
  • 142
50
votes
5 answers

How to get list of available Bluetooth devices?

I'm currently creating an iPhone app (Xcode 4.3.1, IOS 5) that could use Bluetooth devices! Main goal of this application is indoor navigation (GPS inside buildings isn't really accurate). The only solution I see here (to keep my app on AppStore) is…
mz87
  • 1,338
  • 2
  • 13
  • 13
49
votes
3 answers

iOS Core Bluetooth : Getting API MISUSE Warning

I am writing a test app in iOS 7 with the Core Bluetooth API. When I am testing the application I found that I am getting the following warning message: TestBluetooth[626:60b] CoreBluetooth[API MISUSE] can only accept commands while in the powered…
45
votes
6 answers

Communicating between iOS and Android with Bluetooth LE

I've got a working app using CoreBluetooth to communicate between an iPad (central) and iPhone (peripheral). I have one service that has two characteristics. I have a Nexus 7 running the latest Android 4.3 with BTLE support. Android is a bit late to…
38
votes
3 answers

Battery drain when using CoreLocation Significant Location Monitoring & CoreBluetooth

We've released an application which runs in the background and uses CoreBluetooth & CoreLocation to automatically save your parking location. At a high level our app just looks for a CoreBluetooth disconnect event and turns on GPS until we get an…
33
votes
1 answer

iBeacon in the background - Use cases

The number of questions on SO related to iBeacon and its background capabilities is increasing and there is some confusion on that point. I have been testing the AirLocate project. iBeacon has 2 "capabilities": Region monitoring and Ranging. Region…
Khaled Barazi
  • 8,503
  • 6
  • 39
  • 59
33
votes
4 answers

Bluetooth LE RSSI for proximity detection iOS

I'll start with the question. Is the BTLE RSSI a good way to indicate two devices proximity to each other or not? does it only work with small devices like fobs etc? The Issue: I am currently looking at making an app that will use BTLE and allow…
Tom Bates
  • 566
  • 1
  • 6
  • 14
31
votes
3 answers

Core Bluetooth advertise and scan in the background

I have been trying to setup an app to make the device both scan for peripherals and advertise as a peripheral. The goal is for two devices to be woken up in the background when they become near each other via bluetooth discovery. From the Apple…
Kyle Rosenbluth
  • 1,582
  • 4
  • 21
  • 38
28
votes
2 answers

Bluez: advertise service / gatt server example?

Goal I am developping a simple device running Linux. It is BLE capable, and I am currently using bluez 5.8. I want to trigger an action on this device using an iPhone. What already works: I can make the iPhone "see" the device. The iPhone also…
Gilles Gregoire
  • 1,636
  • 1
  • 12
  • 13
23
votes
2 answers

iOS CoreBluetooth : centralManager:didConnectPeripheral / didFailToConnectPeripheral: not getting called

I'm pulling my hair out of this problems. I'm trying to connect to BLE devices, can't see what I've done wrong in my code below. - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a…
1
2 3
99 100