fixed again
This commit is contained in:
parent
528b2b1fd3
commit
e24caea95d
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue