← ClaudeAtlas

core-bluetoothlisted

Build direct Bluetooth Low Energy central or peripheral workflows with Core Bluetooth, including GATT discovery, reads, writes, subscriptions, background modes, and restoration. Use for BLE communication; use accessorysetupkit first for privacy-preserving system setup and picker flows.
thiennc-tesoglobal/ios-skills · ★ 3 · AI & Automation · score 66
Install: claude install-skill thiennc-tesoglobal/ios-skills
# Core Bluetooth Scan for, connect to, and exchange data with Bluetooth Low Energy (BLE) devices. Covers the central role (scanning and connecting to peripherals), the peripheral role (advertising services), background modes, and state restoration. Use `accessorysetupkit` for privacy-preserving accessory discovery and setup; use this skill for direct Core Bluetooth GATT communication. ## Contents - [Setup](#setup) - [Central Role: Scanning](#central-role-scanning) - [Central Role: Connecting](#central-role-connecting) - [Discovering Services and Characteristics](#discovering-services-and-characteristics) - [Reading, Writing, and Notifications](#reading-writing-and-notifications) - [Peripheral Role: Advertising](#peripheral-role-advertising) - [Background BLE](#background-ble) - [State Restoration](#state-restoration) - [Common Mistakes](#common-mistakes) - [Review Checklist](#review-checklist) - [References](#references) ## Setup ### Info.plist Keys | Key | Purpose | |---|---| | `NSBluetoothAlwaysUsageDescription` | Required. Explains why the app uses Bluetooth | | `UIBackgroundModes` with `bluetooth-central` | Background scanning and connecting | | `UIBackgroundModes` with `bluetooth-peripheral` | Background advertising | ### Bluetooth Authorization Core Bluetooth has no explicit permission request API. Add `NSBluetoothAlwaysUsageDescription`, create the manager when the app is ready for Bluetooth access, then check `manager.authorization` and `manager.state`. Treat