What problem does it solve?
This Skill helps you implement Bluetooth Low Energy (BLE) communication reliably instead of dealing with Core Bluetooth delegate timing, permissions, and state edge cases.
Core Features & Use Cases
- Central role (scan + connect): Scan for specific service UUIDs, retain discovered peripherals, and connect only when Bluetooth is powered on.
- GATT discovery (services + characteristics): Discover services/characteristics, read values, and subscribe to notifications.
- Peripheral role (advertise services): Publish local services and characteristics using CBPeripheralManager, with optional background operation.
- Operational robustness: Handle background BLE modes and state restoration after relaunch.
- Use Case: Create a heart-rate monitor that discovers devices by service UUID, subscribes to notifications for measurement data, and keeps working across app backgrounding and relaunch.
Quick Start
Use the core-bluetooth skill to implement a BLE central that scans for the Heart Rate service (180D), connects to a selected device, discovers characteristics, subscribes to notifications, and updates your UI with parsed measurement values.