core-bluetooth

Manage BLE central and peripheral roles for iOS apps.

981|50|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/dpearson2699/swift-ios-skills --skill core-bluetooth-dpearson2699
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: core-bluetooth
Source: https://github.com/dpearson2699/swift-ios-skills/tree/main/skills/core-bluetooth
Command: npx skills add https://github.com/dpearson2699/swift-ios-skills --skill core-bluetooth-dpearson2699

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables seamless interaction with Bluetooth Low Energy (BLE) devices, allowing your application to discover, connect, and exchange data with peripherals.

Core Features & Use Cases

  • BLE Central Role: Scan for, connect to, and communicate with BLE peripherals.
  • BLE Peripheral Role: Advertise services and data from your device.
  • Background Operation: Maintain BLE connectivity and advertising even when the app is in the background.
  • State Restoration: Automatically restore BLE connections and state after app relaunch.
  • Use Case: Develop an iOS app that monitors a heart rate sensor, displays the real-time BPM, and logs the data, all while running in the background.

Quick Start

Use the core-bluetooth skill to scan for peripherals advertising the heart rate service.

Frequently Asked Questions about core-bluetooth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect an iOS app to a Bluetooth Low Energy peripheral?

Scanning for BLE devices in iOS requires configuring your app as a BLE central to discover nearby peripherals advertising specific services. You can then establish a connection and begin interacting with available characteristics.

Can my iOS app read and write data to BLE devices in the background?

Yes, your iOS app can read and write data to BLE devices in the background by enabling specific background modes. This maintains Bluetooth Low Energy connectivity and allows peripheral advertising even when the app is not active.

How does state restoration work for BLE connections after an app relaunch?

State restoration for BLE connections automatically restores your central and peripheral states after an app relaunch. This mechanism re-establishes previous Bluetooth Low Energy device connections and pending operations without manual user intervention.

Can I use my iOS device as a BLE peripheral to advertise data?

Yes, you can use your iOS device as a BLE peripheral to advertise custom services and data. The Core Bluetooth framework supports both central and peripheral roles, allowing your device to broadcast information to nearby BLE centrals.

What is the best way to monitor real-time sensor data over BLE on iOS?

The best way to monitor real-time sensor data over BLE on iOS is to subscribe to characteristic notifications. This allows your central role app to receive continuous updates, such as heart rate BPM, directly from the connected peripheral.