【问题标题】:Why BLE service UUid are different in android and iphone?为什么 BLE 服务 UUid 在 android 和 iphone 中不同?
【发布时间】:2018-02-02 11:33:35
【问题描述】:

我在我的应用程序中使用noble,它会扫描 BLE 设备。问题是,我在我的 android 中收到的 BLE GATT 中的服务 UUId 是更长的 UUID(即 00002220000001000800000805f9b34fb),而在 Iphone 中我得到(2220)。

我需要我的 android 有 2220,因为这是我需要的平台。有没有办法获得后者的服务 UUID?虽然它们是一样的,但看较长的,“2220”从左到右从第 4 位出现。

【问题讨论】:

    标签: android bluetooth bluetooth-lowenergy gatt bluetooth-gatt


    【解决方案1】:

    它们是一样的。 128 位 uuid 派生自 16 位 uuid。见What range of Bluetooth UUIDs can be used for vendor defined profiles?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-08
      • 1970-01-01
      • 2022-08-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多