-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
62 lines (62 loc) · 2.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<html>
<head>
<title>bluetooth API Tests!</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="index.css">
<script src="src/core.js"></script>
<script src="src/obex.js"></script>
<script src="src/bluetooth.js"></script>
<script src="src/main.js"></script>
</head>
<body>
<div id="top">
<fieldset style="border-style:groove">
<legend>Bluetooth Adapter and Devices</legend>
<input type="button" id="get-adapter-state" value="Adapter State" />
<input type="button" id="list-devices" value="List Devices" />
<input type="button" id="start-discovery" value="Start discovery" />
<input type="button" id="stop-discovery" value="Stop discovery" />
<input type="button" id="register-object-push-profile" value="Register "Object Push" profile" />
<input type="button" id="unregister-object-push-profile" value="Unregister "Object Push" profile" />
</fieldset>
</div>
<div id="main">
<div>
<table>
<caption>Adapter State</caption>
<thead>
<tr><th>Address</th><th>Name</th><th>Powered</th><th>Available</th><th>Discovering</th></tr>
</thead>
<tbody id="adapter-state"></tbody>
</table>
<table>
<caption>Device list</caption>
<thead>
<tr>
<th>Address</th>
<th>Name</th>
<th>Paired</th>
<th>Connected</th>
<th>Actions</th>
</tr>
</thead>
<tbody id="device-list"></tbody>
</table>
<table>
<caption>Service list</caption>
<thead>
<tr>
<th>UUID</th>
<th>Actions</th>
</tr>
</thead>
<tbody id="profile-list"></tbody>
</table>
</div>
<div id="messages-container" style="border-style:groove">
<p>Log messages</p>
<ul id="messages-ul" class="messages"></ul>
</div>
</div>
</body>
</html>