您的位置:首页 > 产品设计 > UI/UE

iOS蓝牙4.0开发02-Core Bluetooth框架综述

2015-08-03 18:46 711 查看
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的信息



Local Centrals 和 Remote Peripherals:
central一方是CBCentralManger对象,peripheral一方是CBPeripheral对象



remote peripheral的数据是CBService和CBCharacteristics对象。



Local Peripherals 和 Remote Centrals:(iOS设备作为Peripherals,不是要研究的内容先略过)



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: