kopia lustrzana https://github.com/dl9rdz/rdz_ttgo_sonde
24 wiersze
493 B
HTML
24 wiersze
493 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script type = "text/javascript">
|
|
var ws = new WebSocket("ws://192.168.1.18/ws");
|
|
|
|
ws.onopen = function() {
|
|
window.alert("Connected");
|
|
};
|
|
|
|
ws.onmessage = function(evt) {
|
|
document.getElementById("display").innerHTML = "temperature: " + evt.data + " C";
|
|
};
|
|
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<div>
|
|
<p id = "display">Not connected</p>
|
|
</div>
|
|
</body>
|
|
</html>
|