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

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,不是要研究的内容先略过)



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值