mirror of
https://github.com/Links2004/arduinoWebSockets.git
synced 2025-07-24 04:47:13 +02:00
first working WebSocketClient
add LGPLv2.1
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
<head>
|
||||
|
||||
<script>
|
||||
var connection = new WebSocket('ws://10.11.2.1:81/test', ['esp8266']);
|
||||
var connection = new WebSocket('ws://10.11.2.1:81/test', ['arduino']);
|
||||
|
||||
connection.onopen = function () {
|
||||
connection.send('Message from Browser to ESP8266 yay its Working!! ' + new Date());
|
||||
@ -18,8 +18,8 @@ connection.onmessage = function (e) {
|
||||
};
|
||||
|
||||
setInterval(function() {
|
||||
connection.send('Message from Browser to ESP8266 yay its Working!! ' + new Date());
|
||||
}, 10000);
|
||||
connection.send('Time: ' + new Date());
|
||||
}, 1000);
|
||||
|
||||
</script>
|
||||
|
||||
|
Reference in New Issue
Block a user