A test program for Pachube library.
Dependencies: mbed ThermistorPack Pachube EthernetNetIf
Diff: main.cpp
- Revision:
- 1:d4f8908bf66f
- Parent:
- 0:edeb42b3d357
- Child:
- 2:2446c674625b
--- a/main.cpp Thu Sep 30 22:23:27 2010 +0000 +++ b/main.cpp Thu Sep 30 22:25:51 2010 +0000 @@ -11,7 +11,11 @@ #include "HTTPClient.h" #include "ThermistorMCP9701.h" -PachubeV2CSV web("Your API key is here"); +#define API_KEY "YourAPIKey" +#define FEED_ID 99999 +#define STREAM_ID "YourStreamID" + +PachubeV2CSV web(API_KEY); EthernetNetIf eth; ThermistorMCP9701 thermistor1(p16); @@ -41,8 +45,8 @@ } void example2_loop() { - const int feed_id = 999999; // <- Your feed ID is here.; - const std::string stream_id = "Your ID is here"; + const int feed_id = FEED_ID; + const std::string stream_id = STREAM_ID; int cnt = 0; while (1) {