Page 359 - Tasarım Beceri Atölyeleri Öğretmen El Kitabı
P. 359
ctx.textBaseline=”middle”;
ctx.textAlign=”center”;
ctx.fillText(temp.toString() + “°C”, 0, 0);
}
}
window.onload = init;
</script>
</head>
<body>
<p>
<h1>Arduino - Web Thermometer</h1>
</p>
<canvas id=”remote”></canvas>
<h2>
<p>
WebSocket : <span id=”ws_state”>null</span>
</p>
<button id=”bt_connect” type=”button” onclick=”connect_onclick();”>Connect</button>
351