Search code examples
javascriptbluetooth-lowenergybluetooth-gattweb-bluetooth

Fetch advertisement data using the Web Bluetooth API


I have been trying to fetch the nearby BLE advertisements using Web Bluetooth API. I have been been following the steps in this link.

It has been mentioned in the link that, in order to scan nearby BLE advertisements navigator.bluetooth.requestLEScan() can be used in the near future.

I am able to discover the list of near by devices using this API and pair to the devices individually.

Is there a way to get nearby BLE advertisements without pairing to devices individually? Also is requestLEScan() implemented or still in development?


Solution

  • navigator.bluetooth.requestDevice is available on most platforms, but requestLEScan is not implemented as of June 2019. The implementation has been started, but there's no estimated time to completion.