【问题标题】:getting UUIDs from G- Shock watch bluetooth android从 G-Shock 手表蓝牙 android 获取 UUID
【发布时间】:2012-08-04 11:31:03
【问题描述】:

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

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

【问题讨论】:

  • 我不记得 Android 全面支持 BLE。您使用什么 Android 设备进行测试?
  • 我在 android 中使用 qualcomm 软件来获得设备的 BLE 支持
  • 您使用的是哪种 Android 设备?

标签: android bluetooth uuid bluetooth-lowenergy


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 2011-06-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-02-26
    相关资源
    最近更新 更多