2016年7月11日
摘要: 特色: 基于原生CoreBluetooth框架封装的轻量级的开源库,可以帮你更简单地使用CoreBluetooth API。 CoreBluetooth所有方法都是通过委托完成,代码冗余且顺序凌乱。BabyBluetooth使用block方法,可以重新按照功能和顺序组织代码,并提供许多方法减少蓝牙开 阅读全文
posted @ 2016-07-11 21:04 路很长 阅读(2462) 评论(0) 推荐(0) 编辑
摘要: peripheral模式的流程 1. 打开peripheralManager,设置peripheralManager的委托 2. 创建characteristics,characteristics的description 创建service,把characteristics添加到service中,再 阅读全文
posted @ 2016-07-11 21:03 路很长 阅读(672) 评论(0) 推荐(0) 编辑
摘要: ios连接外设的代码实现流程 1. 建立中心角色 2. 扫描外设(discover) 3. 连接外设(connect) 4. 扫描外设中的服务和特征(discover) - 4.1 获取外设的services - 4.2 获取外设的Characteristics,获取Characteristics的 阅读全文
posted @ 2016-07-11 21:02 路很长 阅读(2134) 评论(0) 推荐(0) 编辑
摘要: 蓝牙常见名称和缩写 MFI make for ipad ,iphone, itouch 专们为苹果设备制作的设备 BLE buletouch low energy,蓝牙4.0设备因为低耗电,所以也叫做BLE peripheral,central == 外设和中心,发起连接的时central,被连接的 阅读全文
posted @ 2016-07-11 21:01 路很长 阅读(316) 评论(0) 推荐(0) 编辑