Managing Multiple Bluetooth Connections in Android

I'm new here. I'm implementing an Android Android project as part of my scientists. I have looked at the example of Bluetooth chat provided by Google, but I am stuck at the connection establishment step.

My project contains a server and several clients (less than 7). Client and server need to exchange data. I understand that I need multiple UUIDs to accept multiple socket connections at the same time, which is what I want. However, what they failed to understand

  • How to identify on the server the request from each client and send the correct answers to each client?

  • Whether to implement the "Connect Thread", "Accept Thread", "Connected Thread" classes as shown in the Bluetooth chat example.

+3


source to share





All Articles