mbed based IoT Gateway More details http://blog.thiseldo.co.uk/wp-filez/IoTGateway.pdf
Dependencies: NetServices FatFileSystem csv_parser mbed MQTTClient RF12B DNSResolver SDFileSystem
Diff: Outputs/OutputPachube.h
- Revision:
- 5:0dbc27a7af55
- Parent:
- 4:d460406ac780
--- a/Outputs/OutputPachube.h Tue May 01 21:43:40 2012 +0000 +++ b/Outputs/OutputPachube.h Wed May 09 20:29:30 2012 +0000 @@ -32,14 +32,11 @@ #ifndef _OUTPUTPACHUBE_H #define _OUTPUTPACHUBE_H +#include "iotgateway.h" #include "mbed.h" #include "HTTPClient.h" #include "HTTPText.h" -#define DATABUF_SIZE 128 - -#define PACHUBE_URL "http://api.pachube.com/v2/feeds/%d.csv?_method=PUT" - /** Output definition class for sending readings to Pachube */ class OutputPachube { @@ -55,12 +52,6 @@ * @param key Pointer to API key */ OutputPachube( char *internalBufferStart, char *url, char *key ); - - /** Set the API Key to use for sending readings to Pachube - * - * @param key Pointer to API key - */ -// void setApiKey( char *key ); /** Initialise output definition object */ @@ -80,6 +71,12 @@ */ virtual int send(); + /** Get the send count + * + * @returns mumber of API calls made + */ + virtual int getSendCount( ); + protected: int sendCount; // Pachube config