mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-24 00:07:49 +08:00
84 lines
9.1 KiB
HTML
84 lines
9.1 KiB
HTML
|
l<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="utf-8" />
|
||
|
<title>CC3200 Mongoose sensor demo</title>
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
|
<script type="text/javascript" src="main.js"></script>
|
||
|
|
||
|
<style>
|
||
|
* {
|
||
|
outline: none;
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
background: #7cf;
|
||
|
color: #555;
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
font: 16px/1.4 Helvetica, Arial, sans-serif;
|
||
|
}
|
||
|
|
||
|
div.content {
|
||
|
width: 800px;
|
||
|
margin: 1em auto;
|
||
|
padding: 2em;
|
||
|
background-color: #fff;
|
||
|
border-radius: 1em;
|
||
|
}
|
||
|
|
||
|
a:link, a:visited {
|
||
|
color: #69c;
|
||
|
text-decoration: none;
|
||
|
}
|
||
|
|
||
|
#graphs {
|
||
|
margin-top: 1em;
|
||
|
}
|
||
|
|
||
|
.graph {
|
||
|
min-height: 12em;
|
||
|
border: 0px solid #ccc;
|
||
|
position: relative;
|
||
|
margin: 0;
|
||
|
padding-right: 5px;
|
||
|
width: 100%;
|
||
|
display: inline-block;
|
||
|
}
|
||
|
|
||
|
.graph_title {
|
||
|
position: absolute;
|
||
|
top: 0.5em; left: 1em;
|
||
|
color: #ccc;
|
||
|
font-weight: bold;
|
||
|
z-index: 999;
|
||
|
}
|
||
|
|
||
|
button { font-size: 100%; }
|
||
|
|
||
|
</style>
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="content">
|
||
|
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABECAYAAAA85kOPAAAWc0lEQVR42u1bCXxU1dUPiAKCpUqxlYqKYmttq1W6fLbWtVXR2vpVsbQfS5pltrf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DPBPDAoP5nF4MoLzc6ZSZNS6Y5JAzoxNSkK4vErYRlWosy5fl98edVSJpm6Tu8/0USd4uZna7BKmI9Q6HuKLZNmtKSq9EV9q8v40d0ViefXFoAvlnBgxbDZWAb3Z1oortPRC2OxPtCX3fsm9d3nloXWzQ6kDKS9/IRGBIXeN0qtc2CT4hfqeEas2svepV3ZzXhq2Z1rUORUnrI8v6jzl5NFNS7hWm90k8+EhYCzRCPC3U9Se7N+eg9EGQ/7tWLx5IgeLOJ594fttAo11xNiC2S8bqj5BfAD303oKf0rY1fWFVfejteYPI6/UecSspDzTRgKHcyGE7wjMAJ1e3fImQGr9SVfVHHuRjpyx5QOn2kFXDAkl9AivJRrK4Gw+tiarE1yG5fir6Ht4JTHakvTjxb0MbSz//VgvC5QjSJRRqI6AUfgufe565RUVcCMBs+2c/8IaLLDORxmQOoRTvCIg/PajrPjMyWQSJy5HSNJVcOTox1zApgyLW8Q6GrGl3xNJCTVdion4JYv1s0/KFCswhlKMldS2E3pgWRfCBLk/KZ4tn30HH8s9vxi2NBZ2peucAOlZ4gy3/A4g6dHAkBcsd+Nz5rIDhVrW9G8164S47/4pPMCnZgTRFGGQYFheqvsHjc7vdF0uKsj06pbFrNqFSCVcLjsJDIBJPspPJDwG5zuQU/QQJ2FGh6yOj73F6vMNNUzmweeX
|
||
|
" style="float:right; height: 50px; border-radius: 3px;">
|
||
|
<h1>Mongoose on CC3200 LaunchPad</h1>
|
||
|
|
||
|
<p>
|
||
|
This web page demonstrates how Mongoose embedded networking library can be
|
||
|
used to implement real-time data exchange. Here, a TI CC3200 board pushes
|
||
|
JSON-encoded WebSocket frames to the connected browser, which in turn
|
||
|
graphs the data. Also, the browser can send commands to the device wrapped
|
||
|
into a WebSocket frame to turn an LED on/off.
|
||
|
</p>
|
||
|
|
||
|
<button id="on_off_button">Switch LED off</button>
|
||
|
|
||
|
<div id="graphs"></div>
|
||
|
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|