Android:获取蓝牙设备的 uuid [英] Android: obtaining uuid of a bluetooth device
问题描述
我需要蓝牙设备的 UUID 才能连接到它,但我对 uuid 不太了解.它是否特定于每个设备以及如何知道什么是设备的 uuid
.可以用代码完成吗?
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?
推荐答案
在提出问题时应该更加明确.您想要连接到 BT 设备,还是已经连接并且想要使用特定服务?
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?
如果您只想连接到设备,您需要 BT 地址(如 MAC
).
If you want to just connect to the device you need the BT address (like a MAC
).
UUID 与 BT 设备提供的服务相关:http://www.bluecove.org/bluecove/apidocs/javax/bluetooth/UUID.html 这里有一个 UUID 列表.
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.
这篇关于Android:获取蓝牙设备的 uuid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!