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

Revision:
5:0dbc27a7af55
Parent:
4:d460406ac780
--- a/Outputs/OutputEmonCms.h	Tue May 01 21:43:40 2012 +0000
+++ b/Outputs/OutputEmonCms.h	Wed May 09 20:29:30 2012 +0000
@@ -32,14 +32,11 @@
 #ifndef _OUTPUTEMONCMS_H
 #define _OUTPUTEMONCMS_H
 
+#include "iotgateway.h"
 #include "mbed.h"
 #include "HTTPClient.h"
 #include "HTTPText.h"
 
-#define DATABUF_SIZE 128
-
-#define EMONCMS_URL "http://api.pachube.com/v2/feeds/%d.csv?_method=PUT"
-
 /** Output definition class for sending readings to OpenEnergyMonitor emonCms
  */
 class OutputEmonCms {
@@ -80,6 +77,12 @@
      */
     virtual int send();
 
+    /** Get the send count
+     * 
+     * @returns mumber of API calls made
+     */
+    virtual int getSendCount( );
+
 protected:
     int sendCount;
     // OEM config