Skip to content

Commit

Permalink
Tentatively connect to the device before returning from requestDevice().
Browse files Browse the repository at this point in the history
This also explains what to do if the user cancels the device picker.

It's still uncertain whether this is the right decision: see #2.
  • Loading branch information
jyasskin committed Aug 12, 2014
1 parent 13f3b89 commit 5c6e4a5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,13 @@ <h2>Device Discovery</h2>
<li>
Wait for the user to have made their selection.
</li>
<li>
If the user cancels the prompt, reject the Promise with a <a>NotFoundError</a> and abort these steps.
</li>
<li>
Connect to the device. ([[BLUETOOTH41]] 3.G.6.2.1)
If the connection fails, reject the Promise with a <a>NetworkError</a> and abort these steps.
</li>
<li>
Resolve the <a>Promise</a> with a <a>BluetoothDevice</a> instance representing the selected device.
</li>
Expand Down

0 comments on commit 5c6e4a5

Please sign in to comment.