Chapter 9
Connecting to a Bluetooth LE Device
Manny de la Torriente
Thanks to its open standards, Bluetooth Low-Energy (LE), also known as BLE,has established itself as a leader for hardware manufacturers looking to create connected accessories for iOS. This chapter introduces Core Bluetooth, Apple’s framework for Bluetooth-based communication, to send and receive messages from a Bluetooth LE device. Additionally, we will discuss Bluetooth best practices for battery life and a positive user experience.
Introduction to the Apple Bluetooth stack
Apple’s Core Bluetooth is the representation of Bluetooth LE on iOS platforms. It’s the framework that you will use to talk to accessories and host peripherals.
The framework is an abstraction of the ...
Get Program the Internet of Things with Swift for iOS now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.