W3C home > Mailing lists > Public > public-web-bluetooth-log@w3.org > October 2016

Re: [web-bluetooth] Error out earlier if no allowedServices.

From: Giovanni Ortuno via GitHub <sysbot+gh@w3.org>
Date: Wed, 12 Oct 2016 21:45:08 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issue_comment.created-253349018-1476308707-sysbot+gh@w3.org>
That error shows up only if you call `getPrimaryService(s)` with a 
UUID. If you call `getPrimaryServices()` and you haven't requested 
access to any services then you just get `DOMException: No Services 
found in device.`

-- 
GitHub Notification of comment by g-ortuno
Please view or discuss this issue at 
https://github.com/WebBluetoothCG/web-bluetooth/issues/313#issuecomment-253349018
 using your GitHub account
Received on Wednesday, 12 October 2016 21:45:15 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 12 October 2016 21:45:16 UTC