Android Bluetooth multiple connection issue?

后端 未结 1 1168
余生分开走
余生分开走 2021-01-01 00:58

I am new in Android, I am working on a project where I have to connect My device with all devices which can be found in by startDiscovery() ca

相关标签:
1条回答
  • 2021-01-01 01:37

    I don't know exactly but according to Bluetooth chat code for making a more connection you have to make array of BluetoothDevice and also you have to manage separate threads for all connections. means you have to make array of threads for reading and writing data from remote devices and each thread will associated with only one device means for device 1 there is a thread1 and for device 2 there is a thread 2 and so on.

    0 讨论(0)
提交回复
热议问题