英文:
What is the best way to identify a device by Bluetooth?
问题
我想要一个用于识别设备的方法。
条件:
- 我可以从我的设备获取这个识别信息。
- 通过蓝牙发现我的设备可以获取它。
我尝试过蓝牙 MAC 地址,但我认为现在只有系统应用可以访问 MAC 地址,这是我的问题。
我尝试过蓝牙 UUID,但问题是我无法自动发现获取 UUID。
当然,蓝牙名称不是一个选择,因为我们可能会找到两个具有相同名称的设备。
英文:
I want something to identify devices.<br>
Condition :<br>
- I can get this identification from my device<br>
- Devices how discovered me by Bluetooth can get it<br>
I try bluetooth mac address but I think access to mac adress now is just for system apps ,this is <a href="https://stackoverflow.com/questions/62067259/bluetoothadapter-getaddress-return-020000000000">my problem</a>.<br>
I try Bluetooth UUIDs but the problem is that I can get UUIDs automatically by discovering.<br>
And of course Bluetooth name is not a choise because we can found 2 devices with the same name<br>
专注分享java语言的经验与见解,让所有开发者获益!
评论