This is a test program for my Pachube API driver classes.

Dependencies:   mbed ThermistorPack Pachube EthernetNetIf

Revision:
1:3c57da48fc0c
Parent:
0:20bfb9085fda
--- a/main.cpp	Wed Oct 13 21:58:32 2010 +0000
+++ b/main.cpp	Thu Oct 14 11:32:57 2010 +0000
@@ -41,9 +41,9 @@
 /**
  * Probe temperatures.
  *
- * @param SPM Sample Per Minutes.
+ * @param interval_min probing interval time.
  */
-void probe_temperatures(const int SPM) {
+void probe_temperatures(const int interval_min) {
     int cnt = 0;
     while (1) {
         char val1[16];
@@ -72,10 +72,10 @@
         cnt++;
 
         /*
-         * This is not exactlly SPM[min.].
-         * But this is good for your starting points I think.
+         * This is not exactlly same as interval_min[min.].
+         * But I think this codes are good starting point for you.
          */
-        for (int i = 0; i < SPM; i++) {
+        for (int i = 0; i < interval_min; i++) {
             /*
              * Wait 60 seconds.
              */
@@ -91,6 +91,6 @@
 int main() {
     eth.setup();
 
-    const int SamplePerMinutes = 5;
-    probe_temperatures(SamplePerMinutes);
+    const int IntervalMinutes = 5;
+    probe_temperatures(IntervalMinutes);
 }