Skip to content

Commit

Permalink
FIX BUGS: example sharkIO library
Browse files Browse the repository at this point in the history
  • Loading branch information
ibnu yahya committed Sep 15, 2016
1 parent 0fbd8d1 commit 3faacb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/gpio_remote.html
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="../lib.js"></script>
<script type="text/javascript" src="../lib/index.js"></script>
<script type="text/javascript">
window.onload = function() {
var socket;
Expand Down
10 changes: 5 additions & 5 deletions examples/simple.html
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="../lib.js"></script>
<script type="text/javascript" src="../lib/index.js"></script>
<script type="text/javascript">
function output(message)
{
Expand All @@ -11,7 +11,7 @@
}
window.onload = function() {
var socket;

socket = new WebSocket("ws://127.0.0.1:6969");

socket.onclose = function()
Expand All @@ -34,9 +34,9 @@
serial.info(function(event) {
output("Device count: "+event.count);
event.device.forEach(function(i){
output("Location : "+i.location);
output("Port Name : "+i.port);
output("---------------------------");
output("Location : "+i.location);
output("Port Name : "+i.port);
output("---------------------------");
});
});
//output("Connected to WebChannel, ready to send/receive messages!");
Expand Down

0 comments on commit 3faacb0

Please sign in to comment.