andrew
andrew

Reputation: 31

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

Upvotes: 0

Views: 81

Answers (1)

andrew
andrew

Reputation: 31

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.

Upvotes: 1

Related Questions