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

Dependencies:   mbed ThermistorPack Pachube EthernetNetIf

Files at this revision

API Documentation at this revision

Comitter:
shintamainjp
Date:
Thu Oct 14 11:32:57 2010 +0000
Parent:
0:20bfb9085fda
Commit message:
Hi. Mr.Jeff Mourich-san. Here is a test program for your case. Please try this :) [Updated a variable name.]

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 20bfb9085fda -r 3c57da48fc0c main.cpp
--- 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);
 }