W3C home > Mailing lists > Public > public-web-bluetooth-log@w3.org > August 2015

Re: [web-bluetooth] Should connectGATT() time out or wait until a device is available?

From: Giovanni Ortuno via GitHub <sysbot+gh@w3.org>
Date: Fri, 21 Aug 2015 15:34:44 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issue_comment.created-133464540-1440171283-sysbot+gh@w3.org>
so:
```javascript
navigator.bluetooth.requestDevice({...})
  .then(device => {
    device.connectGATT(handle_connect);
    // device.gattServer.connected === false
  });
```
SGTM. One question: Would `gattServer.disconnect()` make the promise 
reject?

-- 
GitHub Notif of comment by g-ortuno
See 
https://github.com/WebBluetoothCG/web-bluetooth/issues/152#issuecomment-133464540
Received on Friday, 21 August 2015 15:34:45 UTC

This archive was generated by hypermail 2.3.1 : Friday, 21 August 2015 15:34:45 UTC