forked from blueappio/hexiwear-intermediate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
32 lines (32 loc) · 959 Bytes
/
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
<!doctype html>
<html ng-app="BlueAppDemo">
<head>
<script src="https://blueappio.github.io/blueapp.io/blueapp.io.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.2/angular.min.js"></script>
<script src="app/hexiwear.js"></script>
<script src="app/app.js"></script>
</head>
<body>
<h2>Demo</h2>
<div ng-controller="MainController as main">
<button ng-click="main.buttonClicked()">Find Device</button>
<ul class="unstyled">
<li>
Name: {{main.hexiwear.name}}
</li>
<li>
Id: {{main.hexiwear.id}}
</li>
<li>
Manufacturer: {{main.hexiwear.manufacturerName}}
</li>
<li>
Accelerometer:
<dd> x: {{main.hexiwear.motionData.x}} </dd>
<dd> y: {{main.hexiwear.motionData.y}} </dd>
<dd> z: {{main.hexiwear.motionData.z}} </dd>
</li>
</ul>
</div>
</body>
</html>