Core Bluetooth Programming Guide地址是https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts
/AboutCoreBluetooth/Introduction.html
Core Bluetooth 框架简化了通常的蓝牙任务,iOS App状态会影响蓝牙的行为,默认情况处在背景或是悬浮状态App的BLE是不能工作
Core Bluetooth综述
在BLE有两个关键角色是:central 和peripheral。
peripheral是拥有数据的一方,广播通知
central是需要处理数据实现一定任务的一方,扫描peripherals,寻找有感兴趣数据的peripheral。
Peripheral的结构由services和characteristics组成,一个service包含其数据和行为,characteristic提供更详细service的信息
central一方是CBCentralManger对象,peripheral一方是CBPeripheral对象
remote peripheral的数据是CBService和CBCharacteristics对象。
Local Peripherals 和 Remote Centrals:(iOS设备作为Peripherals,不是要研究的内容先略过)