![](/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/OutputEmonCms.cpp
- Revision:
- 5:0dbc27a7af55
- Parent:
- 4:d460406ac780
--- a/Outputs/OutputEmonCms.cpp Tue May 01 21:43:40 2012 +0000 +++ b/Outputs/OutputEmonCms.cpp Wed May 09 20:29:30 2012 +0000 @@ -80,12 +80,13 @@ csvContent.set(std::string(dataBuffer)); // uri for post includes feed ID and datastream ID - printf("URL: %s\n",dataBuffer); +// printf("URL: %s\n",dataBuffer); emonActivityLED = 1; + sendCount++; // result should be 0 and response should be 200 for successful post - printf("EmonCms send count %d\n", ++sendCount); +// printf("EmonCms send count %d\n", sendCount); /* printf("\nHEAP STATS\n"); __heapstats((__heapprt)fprintf,stderr); @@ -104,3 +105,7 @@ return 0; } +int OutputEmonCms::getSendCount( void ) { + return sendCount; +} + \ No newline at end of file