[web-bluetooth] Consider devicechange event for when a new granted bluetooth device is made available,

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

== Consider devicechange event for when a new granted bluetooth device
 is made available,  ==
In the same way, `devicechange` event is triggered when a new media 
input or output device is made available,  it would be nice to add a 
similar event for when a new granted bluetooth device is made 
available.

Source: 
https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/wdSV0zUuvJQ

```js
navigator.bluetooth.addEventListener('devicechange', event => {
    console.log(event.target.device.id);
    console.log(event.target.device.name);
    console.log(event.target.device.uuids;
    console.log(event.target.device.gatt.connected);
});
```

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

Received on Monday, 1 August 2016 06:48:07 UTC