[web-bluetooth] Add ability to show only connected devices in bluetooth chooser

beaufortfrancois has just created a new issue for 
https://github.com/WebBluetoothCG/web-bluetooth:

== Add ability to show only connected devices in bluetooth chooser ==
How about adding an option to `requestDevice` filters to only only 
show already-connected devices?
@jeromelebel thinks this is a valid use case for Device Firmware 
Update for connected devices such as a mouse. You don't want user to 
be able to select a random device that is simply advertising its 
presence in the chooser.

```js
navigator.bluetooth.requestDevice({
  filters: [{
    services: ['heart_rate'],
  }],
  acceptOnlyConnectedDevices: true
}).then(device => device.gatt.connect())
...

Please view or discuss this issue at 
https://github.com/WebBluetoothCG/web-bluetooth/issues/295 using your 
GitHub account

Received on Wednesday, 14 September 2016 14:24:24 UTC