ReaddataStream

17 Jul 2012

I was just looking through the header file of the PachubeV2CSV.h and I seen the readdatastream which should get the data from a specfic data stream on Pachube, now cosm and I was looking to implement this but when I try to comply it an error comes up. Below is the code I am using hopefully someone can see my problem.

#include "mbed.h"
#include "PachubeV2CSV.h"
#include "EthernetNetIf.h"
#include "HTTPClient.h"

#define API_KEY "lIhOkbvoGJyvFLOQ3dNgDjMkRZ34bOv6GoJSUlob8jw"
#define FEED_ID 66825
#define STREAM_ID "PIR"

PachubeV2CSV web(API_KEY);
EthernetNetIf eth;

/* Entry point.*/
int main() {
    eth.setup();

    printf("readDataStream(%d)\n", web.readDataStream(FEED_ID, STREAM_ID, std::string &datatext);
}