Issue metadata
Sign in to add a comment
|
device.gatt.disconnect() does not abort pending connection
Reported by
emil.len...@gmail.com,
Sep 16 2016
|
||||||||||||||||||||||
Issue descriptionChrome Version : 55.0.2859.0 Linux What steps will reproduce the problem? (1) Execute device.gatt.connect() (2) Some time later execute device.gatt.disconnect() What is the expected result? The connection attempt should be aborted What happens instead? The connection attempt is not aborted. Step (2) is basically a NOP. Please provide any additional information below. Attach a screenshot if possible. There doesn't seem to be any other way in the API currently to abort a connection attempt. At https://chromium.googlesource.com/chromium/src.git/+/87d092908d6e01e183bb02721ad7add4e4babeb4/content/browser/bluetooth/web_bluetooth_service_impl.cc#384 you can clearly see that when disconnecting, nothing happens if the device is not currently connected. According to https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattserver-disconnect active connect() calls should be aborted. You can try it out on https://googlechrome.github.io/samples/web-bluetooth/device-disconnect.html
,
Sep 19 2016
As mentioned by ortuno@, the spec has been changed 11 days ago to include that behaviour: https://github.com/WebBluetoothCG/web-bluetooth/pull/280#issuecomment-245440536
,
Sep 19 2016
Lol, I guess I was a bit early there. I find it strange that it hasn't been possible before though since it's a pretty basic "feature"...
,
Dec 7 2016
,
Dec 7 2016
I'm opening this an issue blocked on the low level concept, so that it is clear at the Blink>Bluetooth layer what this feature request is. issue 583544
,
Dec 7 2016
,
Feb 28 2017
,
Mar 3 2017
,
Mar 9 2018
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by ortuno@chromium.org
, Sep 16 2016Status: Duplicate (was: Unconfirmed)