-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscan.html
76 lines (52 loc) · 1.73 KB
/
scan.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no
initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<title>BLE Scan</title>
<style>
@import 'ui/css/evothings-app.css';
</style>
<script>
// Redirect console.log to Evothings Workbench.
if (window.hyper && window.hyper.log) { console.log = hyper.log }
</script>
<script src="cordova.js"></script>
<script src="libs/jquery/jquery.js"></script>
<script src="libs/evothings/evothings.js"></script>
<script src="scan.js"></script>
</head>
<body ontouchstart=""><!-- ontouchstart="" enables low-delay CSS transitions. -->
<header>
<button class="back" onclick="history.back()">
<img src="ui/images/arrow-left.svg" />
</button>
<img class="logotype" src="ui/images/logo.svg" alt="Evothings" />
<button id="menu-button" tabindex="0" onclick="this.focus()">
<img src="ui/images/menu.svg" />
</button>
<menu>
<menuitem>
<a href="#">Home</a>
</menuitem>
<menuitem>
<a href="#troubleshooting">Troubleshooting</a>
</menuitem>
</menu>
</header>
<h1>BLE Scan</h1>
<button onclick="app.ui.onStartScanButton()" class="green">
START SCAN
</button>
<button onclick="app.ui.onStopScanButton()" class="charcoal">
STOP SCAN
</button>
<p id="scan-status">Scanning Paused</p>
<ul id="found-devices" class="dynamic"></ul>
<section id='troubleshooting'>
<h2>Troubleshooting</h2>
<p>Sometimes BLE stops working when switching between apps or doing multiple reloads. In this case restart the Evothings Client app. Additionally, you can use the Evothings Workbench Tools to see any error messages that may help in your investigation.</p>
</section>
</body>
</html>