从G-Shock手表蓝牙android获取UUID

Sat*_*tya 16 uuid android bluetooth bluetooth-lowenergy

我正在研究Android中的蓝牙低功耗.我希望UUIDs在设备配对时获取远程设备.我发现这BluetoothDevice.getUuids()将UUIDs是一个远程设备.我在ICS的设置应用程序中使用过它.我能够获得UUIDs经典设备和加密狗这是一种低能耗设备.但是我无法获得低能量UUIDs的卡西欧手表.

你能帮我解决这个问题吗?

Oli*_*Oli 2

BluetoothDevice.getUuids()此方法不会启动服务发现过程来从远程设备检索 UUID。相反,会返回服务 UUID 的本地缓存副本。

fetchUuidsWithSdp()如果需要新的 UUID,请使用。愿这有帮助