I
I
ivanessence2016-09-15 10:49:09
Android
ivanessence, 2016-09-15 10:49:09

Android Bluetooth UUID as client, connect to server if only server knows UUID?

There was a question, Google infu and did not understand up to the end.
There is a server application on which the socket is open, it listens to incoming bluetooth connections, the server has a listenUsingRfcommWithServiceRecord (UUID) method with its own UUID. Quote "A connection is considered confirmed when the remote device sends a connection request with the UUID specified when registering the server socket." How can a client device find out the UUID on the server in order to connect to it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
15432, 2016-09-16
@ivanessence

To do this, the server makes itself discoverable, and the client starts searching for nearby Bluetooth devices. Think pairing two phones for file transfer or headphones with a smartphone. You can sew the BSSID of the server into the client config and connect to it right away.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question