![](/media/cache/profiles/DalekSelfie2.jpg.50x50_q85.jpg)
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/OutputSenSe.h
- Revision:
- 5:0dbc27a7af55
- Parent:
- 4:d460406ac780
--- a/Outputs/OutputSenSe.h Tue May 01 21:43:40 2012 +0000 +++ b/Outputs/OutputSenSe.h Wed May 09 20:29:30 2012 +0000 @@ -32,14 +32,11 @@ #ifndef _OUTPUTSENSE_H #define _OUTPUTSENSE_H +#include "iotgateway.h" #include "mbed.h" #include "HTTPClient.h" #include "HTTPText.h" -#define DATABUF_SIZE 128 - -#define SENSE_URL "http://api.pachube.com/v2/feeds/%d.csv?_method=PUT" - /** Output definition class for sending readings to Pachube */ class OutputSenSe { @@ -55,12 +52,6 @@ * @param key Pointer to API key */ OutputSenSe( 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; // Sen.Se config