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,不是要研究的内容先略过)
/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,不是要研究的内容先略过)
相关文章推荐
- 提升UITableView性能-复杂页面的优化
- 第二十七篇:SOUI中控件属性查询方法
- UI中的协议使用步骤
- String StringBuffer StringBuilder比较
- iOS之自定义导航按钮UIBarButtonItem的样式
- easyUI的combox三级联动
- 56.UICollectionView的基本使用
- UITarget-Action(定义一个触碰屏幕启动功能的方法)
- hdu 1711 Number Sequence(求模式串首次出现在文本串的位置)
- UISwitch
- UITouch(事件)及其如何让视图随着鼠标移动
- Implement Queue using Stacks
- UGUI 使用 BMFont
- leetcode-225-Implement Stack using Queues
- Implement Stack using Queues
- easyui-accordion动态生成菜单的实现
- leetcode-232-Implement Queue using Stacks
- Hbuilder主页面控制子页面的方法
- UVA 11572 Unique snowflakes (滑窗)
- UI_Delegate