简体   繁体   中英

How Android bluetooth connect to two devices simutaniously?

I am developing an APP to connect 2 bluetoothh devices simutaniously.

One is OBD2 device and the other sensor.

I am able to connect each of it but I am not able to connect two at same time.

I already tried using two threads but doesn't really work.

If anyone could give me some hints how to connect two devices simutaniously, I would be appericiated.

Thank you

Turns out the answer is really easy. All I need to do is to create another bluetooth service object and feed in with another bluetooth address.

Also I feed in with a blooean to determine different deveice data comes in.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM