Apple provides a variety of classes, protocols, and functions to aid in Core Bluetooth’s functionality for BLE. Just as there are conceptually players involved in the process, there are also classes for each. This includes the central (CBCentralManager and related delegate), the peripheral (CBPeripheral and related delegate), and more.
- [Instructor] Now let's look at some…of the resources from Core Bluetooth.…These are the classes and protocols…that we'll be using to actually facilitate the communication…between our central, in this case our app,…and the peripherals.…For the central we have the CBCentralManager.…Instances of this represent the central…as it scans, connects, and otherwise communicates…with the peripherals.…The CBCentralManagerDelegate is the protocol…that our class will implement,…so we get the callbacks for any changes and updates…in connections.…
The CBPeripheral represents the physical devices…we're connecting to.…And the CBPeripheralDelegate is the callback step…related to those.…CBService obviously represents the services…of a peripheral.…And CBCharacteristic, the characteristics of the services.…CBCentralManager is the class…that allows us to determine if the power is on…for Bluetooth, and also to scan, discover,…connect to, and generally manage Bluetooth devices.…CBPeripheral is the class…that represents the physical devices…
- Bluetooth Low Energy (BLE) basics
- Core Bluetooth key classes
- Scanning for peripherals
- Discovering services and characteristics
- Writing to a characteristic
- Reconnecting to peripherals
- Apps as peripherals
Skill Level Intermediate
1. BLE Basics
2. Scanning, Connecting, and Discovering
3. Writing to a Characteristic
Adding additional features10m 43s
4. An App as a Peripheral
Next steps1m 7s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.