Android: obtaining uuid of a bluetooth device

后端 未结 2 1902
天涯浪人
天涯浪人 2020-12-15 01:27

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

相关标签:
2条回答
  • 2020-12-15 01:59

    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.

    0 讨论(0)
  • 2020-12-15 02:10

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

    0 讨论(0)
提交回复
热议问题