cordova-plugin-ble-central-iotile-fork
Version:
Bluetooth Low Energy (BLE) Central Plugin [IOTile Fork]
32 lines (30 loc) • 1.2 kB
HTML
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<title>SensorTag</title>
</head>
<body>
<div class="app">
<p style="text-align:center; padding-top: 20px;">Choose a peripheral with a battery service</p>
<div id="mainPage">
<ul id="deviceList">
</ul>
<button id="refreshButton">Refresh</button>
</div>
<div id="detailPage">
<div id="batteryState"></div>
<button id="batteryStateButton">Read Battery State</button>
<button id="disconnectButton">Disconnect</button>
</div>
</div>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript">
app.initialize();
</script>
</body>
</html>