Re: [web-bluetooth] BluetoothDevice.gatt is not optional

Since `gatt` can be `null` now, that means developers have to check 
its value before using its methods right? If so, I'll update our 
[device info 
sample](https://googlechrome.github.io/samples/web-bluetooth/device-info.html)
 then.

```js
navigator.bluetooth.requestDevice({filters: [{name: "Jeffrey's 
Robot"}]})
  .then(device => {
    console.log('> Name:             ' + device.name);
    console.log('> Id:               ' + device.id);
    if (device.gatt) {
      console.log('> Connected:        ' + device.gatt.connected);
    }
  })

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

Received on Friday, 30 September 2016 10:27:31 UTC