Bluetooth LE
with CoreBluetooth
Chris Miles
http:/
/chrismiles.info/
@chrismiles
Melbourne CocoaHeads – Feb 2013
Slide 2
Slide 2 text
CoffeeAddict
(demo)
Slide 3
Slide 3 text
Bluetooth Low Energy
A feature of Bluetooth 4.0
Low power, low latency wireless applications
Healthcare, fitness, security, home
entertainment, home automation, proximity,
toys, ...
Slide 4
Slide 4 text
Bluetooth Low Energy
Slide 5
Slide 5 text
Bluetooth Low Energy
No system-level pairing
Device “driver” embedded in app
No need for MFI Licensing
“Indies” can build both the hardware and
software
Slide 6
Slide 6 text
Bluetooth LE
iPhone 4S onwards
iPad 3rd gen onwards
iPad Mini
iPod Touch 5th Gen
Recent MacBook Pros and Airs and Mac Mini
iOS Simulator
CBCentralManager
CBPeripheral
CBService
CBCharacteristic
NSData
Central Scanning
Peripheral Advertising
Peripheral
Service
Characteristic
Value
Heartrate
BPM
Location
85 “Chest”
Slide 13
Slide 13 text
CoreBluetooth
iOS Device can be a peripheral
CBPeripheralManager, CBCentral
CBMutableService, CBMutableCharacteristic
New in iOS 6
Slide 14
Slide 14 text
CoreBluetooth
Event-based peripherals
App can be suspended, is woken up on
event
Session-based peripherals
Full access to peripheral in background
Requires info.plist entry
iOS Background Modes