-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (46 loc) · 1.37 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
<head>
<title>bluetooth</title>
</head>
<body>
{{> console}}
{{> devices}}
</body>
<template name="devices">
<div class="device-container">
<button data-enabled>Enabled</button>: {{enabled}}<br>
<span>____________________________________________</span>
{{#if scanning}}
<button data-stop-scan>Stop</button>
{{else}}
<button data-start-scan>Scan</button>
{{/if}}
<p>Available Devices</p>
<ul>
{{#each deviceList}}
<li>
{{#if isConnectedDevice id}}
<button data-disconnect>Disconnect: {{name}}</button><br>
{{else}}
<button data-connect>Connect: {{name}}</button><br>
{{/if}}
id: {{id}}<br>
advertising: {{stringify advertising}}<br>
rssi: {{rssi}}
</li>
{{/each}}
</ul>
<span>____________________________________________</span>
<p>
Available Services
<button data-start-all-notifications>
Start Notifications
</button>
<button data-read-all>
Read All
</button>
</p>
</div>
{{#if services}}
{{> serviceList parent=self}}
{{/if}}
</template>