Allow Chrome to specify which Bluetooth adapter to use |
||||||||||
Issue descriptionIt would be nice if there were a way to specify which Bluetooth adapter to use in Chrome. According to http://forum.espruino.com/conversations/297684/, it looks like some users would love that feature. For now though, Chrome only uses the first adapter. See https://chromium.googlesource.com/chromium/src/+/15b1f5307b13a30002693aa1907819c447db4954/device/bluetooth/bluez/bluetooth_adapter_bluez.cc#259
,
Jan 9 2017
,
Jan 9 2017
,
Feb 17 2017
,
Mar 3 2017
,
Mar 3 2017
,
Apr 10 2017
,
Oct 20 2017
,
Oct 20 2017
,
Apr 19 2018
|
||||||||||
►
Sign in to add a comment |
||||||||||
Comment 1 by fbeaufort@chromium.org
, Jan 9 2017We could alternatively use something like this: Use the first powered adapter when there are multiples. This would give an option to users to power down one adapter and power up the one they want. This is not optimal for sure but at least they would be able to use from Chrome the adapter they want. if (adapters.length > 0) { var defaultAdapter = adapters[0]; if (adapters.length > 1) { for (adapter in adapters) { if (adapter.powered === true ) { defaultAdapter = adapter; break; } } } setAdapter(defaultAdapter); }