![](/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/OutputMqtt.cpp
- Revision:
- 5:0dbc27a7af55
- Parent:
- 2:27714c8c9c0a
--- a/Outputs/OutputMqtt.cpp Tue May 01 21:43:40 2012 +0000 +++ b/Outputs/OutputMqtt.cpp Wed May 09 20:29:30 2012 +0000 @@ -67,6 +67,7 @@ // These are used to send void OutputMqtt::addReading(char *topic, char *unused, char *reading ) { + sendCount++; mqtt.publish( topic, reading ); } @@ -77,3 +78,7 @@ return 0; } + +int OutputMqtt::getSendCount( void ) { + return sendCount; +}