【问题标题】:Fetch advertisement data using the Web Bluetooth API使用 Web 蓝牙 API 获取广告数据
【发布时间】:2019-06-04 05:54:31
【问题描述】:

我一直在尝试使用 Web 蓝牙 API 获取附近的 BLE 广告。我一直在按照link 中的步骤进行操作。

链接中已经提到,为了扫描附近的BLE广告,navigator.bluetooth.requestLEScan()可以在不久的将来使用。

我能够使用此 API 发现附近的设备列表并单独与设备配对。

有没有办法在不单独配对设备的情况下获取附近的 BLE 广告? requestLEScan() 是否已实现或仍在开发中?

【问题讨论】:

    标签: javascript bluetooth-lowenergy bluetooth-gatt web-bluetooth


    【解决方案1】:

    navigator.bluetooth.requestDevice 在大多数平台上都可用,但requestLEScannot implemented as of June 2019implementation has been started,但没有预计完成时间。

    【讨论】:

      猜你喜欢
      • 2021-11-08
      • 2022-07-08
      • 1970-01-01
      • 2012-12-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-06-13
      相关资源
      最近更新 更多