vid09
vid09

Reputation: 149

Android: obtaining uuid of a bluetooth device

I need UUID of a bluetooth device to connect to it, but i don't know much about uuid. Is it specific to each device and how to know what is device's uuid. Can it be done using code?

Upvotes: 6

Views: 23457

Answers (2)

garzanti
garzanti

Reputation: 2190

You should be more explicit when you make your question. Do you want to connect to a BT device, or you are already connected and you want to use a particular service?

If you want to just connect to the device you need the BT address (like a MAC).

The UUID are related to the services offered by the BT device: http://www.bluecove.org/bluecove/apidocs/javax/bluetooth/UUID.html Here you have a list of UUIDs.

Upvotes: 10

vidit
vidit

Reputation: 171

Generate UUID of your phone by using adb shell, sdptool browse command

Upvotes: -5

Related Questions