Skip to content

Commit

Permalink
Specify a Bluetooth Scanning API.
Browse files Browse the repository at this point in the history
This doesn't cover scanning from a service worker yet.

Fixes WebBluetoothCG#191.
  • Loading branch information
jyasskin committed Jul 18, 2016
1 parent 5a4c17a commit d06a3f0
Show file tree
Hide file tree
Showing 4 changed files with 3,943 additions and 26 deletions.
10 changes: 5 additions & 5 deletions index.bs
Expand Up @@ -1509,7 +1509,7 @@ spec: permissions
interface BluetoothDevice {
readonly attribute DOMString id;
readonly attribute DOMString? name;
readonly attribute BluetoothRemoteGATTServer gatt;
readonly attribute BluetoothRemoteGATTServer? gatt;
readonly attribute FrozenArray<UUID> uuids;

Promise<void> watchAdvertisements();
Expand Down Expand Up @@ -1664,10 +1664,10 @@ spec: permissions
Initialize <code><var>result</var>.watchingAdvertisements</code> to `false`.
</li>
<li>
Set <code><var>result</var>.gatt.{{BluetoothRemoteGATTServer/device}}</code> to <var>result</var>.
</li>
<li>
Set <code><var>result</var>.gatt.{{BluetoothRemoteGATTServer/connected}}</code> to `false`.
Initialize <code>|result|.gatt</code> to
a new {{BluetoothRemoteGATTServer}} instance with
its {{BluetoothRemoteGATTServer/device}} attribute initialized to |result|
and its {{BluetoothRemoteGATTServer/connected}} attribute initialized to `false`.
</li>
<li>
Add <var>device</var>'s
Expand Down

0 comments on commit d06a3f0

Please sign in to comment.