最終更新:2024-05-14 (火) 09:57:53 (5d)  

Core Bluetooth
Top / Core Bluetooth

Communicate with Bluetooth low energy and BR/EDR (“Classic”) Devices.

https://developer.apple.com/documentation/corebluetooth

対応プラットフォーム

概要

  • もともとはBLEを抽象化したもの
  • iOS 13 (2019)からBluetooth Classicをカバーできるように拡張
    • 2019以降: Communicate with Bluetooth low energy and BR/EDR (“Classic”) Devices.
    • 2019頃まで: Communicate with Bluetooth 4.0 low-energy devices.

iOS 13での拡張 (2019)

説明

WWDC 2012?

Core Bluetooth/開発

Core Bluetooth/ドキュメント

主なクラス

CBCentralManager

  • An object that scans for, discovers, connects to, and manages peripherals.

CBCentral?

  • A remote device connected to a local app, which is acting as a peripheral.

CBPeripheral

  • A remote peripheral device.

CBPeripheralManager

  • An object that manages and advertises peripheral services exposed by this app.

CBUUID

CBService

CBCharacteristic

Core Bluetooth/セントラル

  • CBCentral?A remote device connected to a local app, which is acting as a peripheral.
    CBCentralManagerAn object that scans for, discovers, connects to, and manages peripherals.
    CBCentralManagerDelegateA protocol that provides updates for the discovery and management of peripheral devices.

Core Bluetooth/ペリフェラル

  • CBPeripheralA remote peripheral device.
    CBPeripheralDelegateA protocol that provides updates on the use of a peripheral’s services.
    CBPeripheralManagerAn object that manages and advertises peripheral services exposed by this app.
    CBPeripheralManagerDelegate?A protocol that provides updates for local peripheral state and interactions with remote central devices.
    CBAttributeA representation of common aspects of services offered by a peripheral.
    CBAttributePermissions?Values that represent the read, write, and encryption permissions for a characteristic’s value.

サービス

  • CBServiceA collection of data and associated behaviors that accomplish a function or feature of a device.
    CBMutableServiceA service with writeable property values.
    CBCharacteristicA characteristic of a remote peripheral’s service.
    CBMutableCharacteristicA characteristic of a local peripheral’s service.
    CBDescriptorAn object that provides further information about a remote peripheral’s characteristic.
    CBMutableDescriptor?An object that provides additional information about a local peripheral’s characteristic.

参考

関連