BabyBluetooth icon indicating copy to clipboard operation
BabyBluetooth copied to clipboard

该项目是否基于channel串行处理的?每个channel是不是不能并发处理扫描、连接任务的?

Open taolunyifan opened this issue 5 years ago • 1 comments

该项目是否基于channel串行处理的?每个channel是不是不能并发处理扫描、连接任务的?
貌似无法做到并行处理多个channel同时处理扫描,连接的回调,需要先处理完一个channel的扫描,连接后再切换到另外一个channel处理扫描,连接。(例如一个app一启动就需要同时以最快的速度扫描连接车辆、手环、手表、并且他们的处理逻辑都是独立很大差别的,如果必须一个一个串行的处理时间太长了)
如果是这样自己很多需要同时处理多个外设的app的扫描和连接,该工程就不适用了,希望可以增加并发处理多个channel的实现

taolunyifan avatar Dec 13 '19 02:12 taolunyifan

自己处理,这说白了不就是多线程吗,我们自己处理的。

pantaopt avatar Dec 26 '19 08:12 pantaopt