Commit 16a45229 authored by Finn Bear's avatar Finn Bear 🐿

WIP refresh checkbox.

parent b9136e46
......@@ -156,6 +156,7 @@ void loop() {
client.println("HTTP/1.1 200 OK");
client.println("Content-type:text/html");
client.println();
client.println("<script type='text/javascript'>setInterval(function() { if (document.getElementById('auto-update').checked) { location.reload(); } }, 4000);</script>");
client.println("<h1>FinnPDA</h1>");
client.print("<p>Temperature: ");
client.print(lastTemperature);
......@@ -175,6 +176,7 @@ void loop() {
client.print("<p>Last update: ");
client.print((millis() - lastUpdate) * 0.001);
client.print(" s</p>");
client.print("<input id='auto-update' type='checkbox'>");
client.println();
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment