mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-02 13:24:12 +01:00
Updated TemperatureWebPanel
This commit is contained in:
parent
c777b5c76b
commit
cd9d755bb0
@ -38,6 +38,7 @@
|
|||||||
// will forward there all the HTTP requests for us.
|
// will forward there all the HTTP requests for us.
|
||||||
YunServer server;
|
YunServer server;
|
||||||
String startString;
|
String startString;
|
||||||
|
long hits = 0;
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
@ -103,10 +104,13 @@ void loop() {
|
|||||||
client.print(" degrees C");
|
client.print(" degrees C");
|
||||||
client.print("<br>This sketch has been running since ");
|
client.print("<br>This sketch has been running since ");
|
||||||
client.print(startString);
|
client.print(startString);
|
||||||
|
client.print("<br>Hits so far: ");
|
||||||
|
client.print(hits);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close connection and free resources.
|
// Close connection and free resources.
|
||||||
client.stop();
|
client.stop();
|
||||||
|
hits++;
|
||||||
}
|
}
|
||||||
|
|
||||||
delay(50); // Poll every 50ms
|
delay(50); // Poll every 50ms
|
||||||
|
Loading…
Reference in New Issue
Block a user