Re: [web-bluetooth] Should `requestDevice` allow choosing more than 1 device?

Using the Permissions API would make this trivial. See 
https://lists.w3.org/Archives/Public/public-web-bluetooth/2015Dec/0007.html

```js
permissions.request({ name: 'bluetooth', filters: [{ name: 'Jugglow' 
}], multiple: true })
.then(result => {
  if (result.state != 'granted') {
    return;
  }
  // Let's try to connect to all devices...
  return Promise.all(result.devices.map(device => connectDevice));
});

function connectDevice(device) {
  return device.connectGATT()
  .then(...)
}
```

-- 
GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at 
https://github.com/WebBluetoothCG/web-bluetooth/issues/42#issuecomment-169284024
 using your GitHub account

Received on Wednesday, 6 January 2016 10:14:34 UTC