Bluetooth Development Summary
- As long as the process of familiarity with Bluetooth, and the role of each role in Bluetooth, in fact, Bluetooth communication is not difficult to imagine
- 1. Bluetooth Center
CBCentralManager
: generally refers to the iphone phone
- 2. Device (peripheral)
CBPeripheral
: Smart hardware with Bluetooth chip
- Array of services for peripherals,
peripheral.services
CBService
objects: Hardware can provide a lot of services, in fact, the function of the hardware modules, such as the vibration of the bracelet and light up the color is two different services
- Service Characteristics
CBCharacteristic
: Responsible for the service to provide read and write data, a service can have a number of features, such as the color of the lamp bright RGB value, there is a length of time is a separate service
iOS Bluetooth Development Summary-4