gpt4 book ai didi

android - 从 G-Shock watch 蓝牙 android 获取 UUID

转载 作者:IT老高 更新时间:2023-10-28 23:36:06 26 4
gpt4 key购买 nike

我正在研究 Android 中的低功耗蓝牙。我想在设备配对时获取远程设备的 UUIDs。我发现 BluetoothDevice.getUuids() 会给出远程设备的 UUIDs。我在 ICS 的设置应用程序中使用了它。我能够获得经典设备的 UUIDs 和加密狗,这是一种低能耗设备。但我无法获得 casio watch UUIDs,这也是一种低能量。

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

最佳答案

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

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

关于android - 从 G-Shock watch 蓝牙 android 获取 UUID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11808302/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com