78 lines (53 sloc) 1.79 KB
<!DOCTYPE html>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no,
shrink-to-fit=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<title>BLE Scan</title>
@import 'ui/css/evothings-app.css';
// Redirect console.log to Evothings Workbench.
if (window.hyper && window.hyper.log) { console.log = hyper.log }
<script src="cordova.js"></script>
<script src="libs/jquery/jquery.js"></script>
<script src="libs/evothings/evothings.js"></script>
<script src="libs/evothings/ui/ui.js"></script>
<script src="app.js"></script>
<body ontouchstart=""><!-- ontouchstart="" enables low-delay CSS transitions. -->
<button class="back" onclick="history.back()">
<img src="ui/images/arrow-left.svg" />
<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" />
<a href="#">Home</a>
<a href="#troubleshooting">Troubleshooting</a>
<h1>BLE Scan</h1>
<button onclick="app.ui.onStartScanButton()" class="green">
<button onclick="app.ui.onStopScanButton()" class="charcoal">
<p id="scan-status">Scanning Paused</p>
<ul id="found-devices" class="dynamic"></ul>
<section id='troubleshooting'>
<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>