fixed again

This commit is contained in:
James 2018-12-09 17:21:04 +11:00
parent 528b2b1fd3
commit e24caea95d

View file

@ -8,6 +8,8 @@ const char* MAIN_PAGE PROGMEM = R"=====(
var Socket;
function init() {
Socket = new WebSocket('ws://' + window.location.hostname + ':81/');
}
Socket.onmessage = function(event){
console.log("msg rec", evt.data);
var msgArray = evt.data.split(","); // split message by delimiter into a string array
@ -26,7 +28,6 @@ const char* MAIN_PAGE PROGMEM = R"=====(
}
}
}
}
</script>