Multiple bluetooth connection

后端 未结 8 1894
后悔当初
后悔当初 2020-11-28 19:46

I want to connect 3 devices via bluetooth (My Droid must connect to 2 bluetooth devices). I \'ve connected my Droid to 1 device using Bluetooth chat How should I modify it f

8条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 20:17

    Have you looked into the BluetoothAdapter Android class? You set up one device as a server and the other as a client. It may be possible (although I haven't looked into it myself) to connect multiple clients to the server.

    I have had success connecting a BlueTooth audio device to a phone while it also had this BluetoothAdapter connection to another phone, but I haven't tried with three phones. At least this tells me that the Bluetooth radio can tolerate multiple simultaneous connections :)

提交回复
热议问题