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

[web-bluetooth] Say what to do when the system has no Bluetooth adapter or it's off.

From: Jeffrey Yasskin via GitHub <sysbot+gh@w3.org>
Date: Tue, 02 Jun 2015 17:27:55 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issues.opened-84117562-1433266074-sysbot+gh@w3.org>
jyasskin has just created a new issue for 
https://github.com/WebBluetoothCG/web-bluetooth:

== Say what to do when the system has no Bluetooth adapter or it's 
off. ==
We need to specify whether `navigator.bluetooth` simply doesn't exist,
 or `navigator.bluetooth.requestDevice()` rejects its promise (with 
`NotSupportedError`?), or if it's detectable some other way 
(`navigator.bluetooth.enabled`?). If the adapter is turned off after 
the user gets a device, should that be a `NotSupportedError` or a 
`NetworkError` (simulating that the device went out of range)?

See https://github.com/WebBluetoothCG/web-bluetooth/issues/127
Received on Tuesday, 2 June 2015 17:27:57 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 2 June 2015 17:27:57 UTC