What problem does it solve?
Provides actionable guidance and ready-to-adopt patterns for scanning, connecting to, and exchanging data with Bluetooth Low Energy peripherals on iOS, removing uncertainty around Core Bluetooth lifecycle, background behavior, and state restoration.
Core Features & Use Cases
- Central role: Scan for peripherals with service filtering, connect, discover services and characteristics, and manage notifications and read/write operations.
- Peripheral role: Advertise services, publish characteristics, respond to read/write requests, and manage subscriptions and L2CAP channels.
- Reliability & background: Covers background central/peripheral modes, state restoration identifiers, reconnection strategies, characteristic property checks, and common pitfalls to avoid.
- Use Case: Implement a heart-rate monitor app that discovers nearby monitors, connects, reads battery and heart-rate characteristics, subscribes to live updates, and restores connections after app relaunch.
Quick Start
Use the core-bluetooth skill to scan for nearby heart rate monitors, connect to a device, discover its services and characteristics, and subscribe to heart rate notifications.