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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.