We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#2 made requestDevice not imply a connection, but that implies that common uses look like:
requestDevice
navigator.bluetooth.requestDevice(...) .then(device => {device.connect().then(()=>device);}) .then(device => { /* real use */ });
If connect() returns a BluetoothDevice or similar, then the common use would look like:
connect()
BluetoothDevice
navigator.bluetooth.requestDevice(...) .then(device => device.connect()) .then(device => { /* real use */ });
which is a bit simpler.
The text was updated successfully, but these errors were encountered:
Rename BluetoothDevice.connect() to connectGATT(), and have it return…
921f65a
… a BluetoothGATTRemoteServer. Fixes WebBluetoothCG#65 and fixes WebBluetoothCG#22.
c759e74
No branches or pull requests
#2 made
requestDevice
not imply a connection, but that implies that common uses look like:If
connect()
returns aBluetoothDevice
or similar, then the common use would look like:which is a bit simpler.
The text was updated successfully, but these errors were encountered: