Alain

Results 17 comments of Alain

从系统设置连接的是经典蓝牙(classic bluetooth),涉及经典蓝牙库(ExternalAccessory),这个项目是关于BLE的,和经典蓝牙是两回事。

如果App 作为 central 可以连接多个 ble 设备. 具体参考连接单个ble设备, 基本一致, 区分好 peripheral 就可以了.

订阅服务就可以了, 有更新的时候系统会调用更新的代理方法, 通过回调的 characteristic 的 uuid 来区分具体服务. FYI:[setNotifyValue:forCharacteristic:](https://developer.apple.com/documentation/corebluetooth/cbperipheral/1518949-setnotifyvalue?language=objc)

还可以通过 option 提醒啊, 这个我没注意, 涨姿势. 用 state 的话可以监听到蓝牙状态的改变, 用 option 应该是 init 的时候有提醒吧, 中途断开会怎样??

Hi @LucasXu0 , thank you for pointing out, I will raise a new pull request to resolve the issue.