初了解BLE

来源:互联网 发布:万历十五年 总结 知乎 编辑:程序博客网 时间:2024/06/06 21:00

建立中心角色—扫描外设(discover)—连接外设(connect)—扫描外设中的服务和特征(discover)—与外设做数据交互(explore and interact)—断开连接(disconnect)。

首先在我自己类的头文件中要包含CoreBluetooth的头文件,并继承两个协议<CBCentralManagerDelegate,CBPeripheralDelegate>


0 0
原创粉丝点击