RxBluetoothKit:用于RxSwift的iOS和OSX蓝牙库 源码

qqdifferent83707 16 0 ZIP 2021-02-19 15:02:29

RxBluetoothKit是一个蓝牙库,可以使与BLE设备的交互更加轻松。 它由RxSwift和CoreBluetooth提供支持,并且为Central和Peripheral模式提供了不错的API。 所有这些都可以使用,并使您的代码更具可读性,可靠性和易于维护性。 这是您可以使用RxBluetoothKit进行的偷窥: manager. scanForPeripherals ( withServices : [serviceId]) . take ( 1 ) . flatMap { $0 . peripheral . establishConnection () }

用户评论
请输入评论内容
评分:
暂无评论