From 1fbb3263c70259368bf735ed8843132f5bcffd4b Mon Sep 17 00:00:00 2001 From: tigoe Date: Sat, 6 Jul 2013 08:20:02 -0400 Subject: [PATCH] Updated TemperatureWebPanel --- .../examples/TemperatureWebPanel/TemperatureWebPanel.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/Bridge/examples/TemperatureWebPanel/TemperatureWebPanel.ino b/libraries/Bridge/examples/TemperatureWebPanel/TemperatureWebPanel.ino index 0621174..8f50459 100644 --- a/libraries/Bridge/examples/TemperatureWebPanel/TemperatureWebPanel.ino +++ b/libraries/Bridge/examples/TemperatureWebPanel/TemperatureWebPanel.ino @@ -38,6 +38,7 @@ // will forward there all the HTTP requests for us. YunServer server; String startString; +long hits = 0; void setup() { Serial.begin(9600); @@ -103,10 +104,13 @@ void loop() { client.print(" degrees C"); client.print("
This sketch has been running since "); client.print(startString); + client.print("
Hits so far: "); + client.print(hits); } // Close connection and free resources. client.stop(); + hits++; } delay(50); // Poll every 50ms