Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need not get mac address to start many server #22

Open
zhubinsheng opened this issue Aug 24, 2021 · 1 comment
Open

need not get mac address to start many server #22

zhubinsheng opened this issue Aug 24, 2021 · 1 comment

Comments

@zhubinsheng
Copy link

Server: Here I declare four BluetoothSockets. Because accept () is a blocking operation, once the connection is successful, it will return to BluetoothSocket, and then continue to wait for the next connection. In this way, we have achieved multiple connections. UUID is the identifier of the server. After obtaining the BluetoothSocket, we can perform related operations to obtain input and output streams. To communicate with each other. by there

@zhubinsheng
Copy link
Author

i Bad english。。 but i had test, if start many servicve with different uuid,finally clients will connect one uuid,and only the first work normal!and i test only start one service with one uuid but start many thread to accept client connect ,this help me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant