A test program for Pachube library.

Dependencies:   mbed ThermistorPack Pachube EthernetNetIf

Files at this revision

API Documentation at this revision

Comitter:
shintamainjp
Date:
Wed Oct 13 10:50:23 2010 +0000
Parent:
1:d4f8908bf66f
Commit message:
First version.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r d4f8908bf66f -r 2446c674625b main.cpp
--- a/main.cpp	Thu Sep 30 22:25:51 2010 +0000
+++ b/main.cpp	Wed Oct 13 10:50:23 2010 +0000
@@ -19,7 +19,10 @@
 EthernetNetIf eth;
 ThermistorMCP9701 thermistor1(p16);
 
-void example1() {
+/**
+ * Example No.1
+ */
+void example1(void) {
     int page = 1;
     int per_page = 10;
     std::string content = "";
@@ -44,7 +47,10 @@
     printf("====Data====\n%s\n============\n", datatext.c_str());
 }
 
-void example2_loop() {
+/**
+ * Example No.2
+ */
+void example2_loop(void) {
     const int feed_id = FEED_ID;
     const std::string stream_id = STREAM_ID;
     
@@ -63,6 +69,9 @@
     }
 }
 
+/**
+ * Entry point.
+ */
 int main() {
     eth.setup();