File tree 4 files changed +563
-0
lines changed
4 files changed +563
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < script src ="/socket.io/socket.io.js "> </ script >
5
+ < script src ="https://code.jquery.com/jquery.js "> </ script >
6
+ < script type ="text/javascript ">
7
+ var socket = io . connect ( ) ;
8
+ socket . on ( 'sensor' , function ( data ) {
9
+ $ ( "pre#output" ) . append ( JSON . stringify ( data ) + "\n" ) ;
10
+ } ) ;
11
+ </ script >
12
+ </ head >
13
+ < body >
14
+ < pre > _____ _____ ____ ____ _____ _ ______
15
+ / ____| __ \ / __ \ / __ \ / ____| | | ____|
16
+ | | | |__) | | | | | | | (___ | | | |__
17
+ | | | _ /| | | | | | |\___ \| | | __|
18
+ | |____| | \ \| |__| | |__| |____) | |____| |____
19
+ \_____|_| \_\\____/ \____/|_____/|______|______|
20
+
21
+ < b > sensortag data:</ b > </ pre >
22
+ < input type ="button " value ="clear " onclick ="$('pre#output').empty(); " />
23
+ < pre id ="output "> </ pre >
24
+ </ body >
25
+ </ html >
You can’t perform that action at this time.
0 commit comments