W3C home > Mailing lists > Public > public-web-bluetooth-log@w3.org > July 2017

Re: [web-bluetooth] TypeError: server.getPrimaryService is not a function

From: Giovanni Ortuno via GitHub <sysbot+gh@w3.org>
Date: Mon, 17 Jul 2017 00:56:21 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issue_comment.created-315650833-1500252979-sysbot+gh@w3.org>
The second arrow function is not returning a promise.

Instead of:
```js
return device.gatt.connect;
```
it should be:
```js
return device.gatt.connect();
```

-- 
GitHub Notification of comment by g-ortuno
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/369#issuecomment-315650833 using your GitHub account
Received on Monday, 17 July 2017 00:56:27 UTC

This archive was generated by hypermail 2.3.1 : Monday, 17 July 2017 00:56:35 UTC