From 06c78fe0e2e4e7f0a5ba791571e1986a2e0dab42 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 2 Aug 2015 16:27:10 +0200 Subject: o Adding a MQTT consumer that stores the parsed record in Cassandra. --- mqtt_support.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 mqtt_support.h (limited to 'mqtt_support.h') diff --git a/mqtt_support.h b/mqtt_support.h new file mode 100644 index 0000000..9a9f7fe --- /dev/null +++ b/mqtt_support.h @@ -0,0 +1,25 @@ +#ifndef TRYGVIS_MQTT_SUPPORT_H +#define TRYGVIS_MQTT_SUPPORT_H + +#include "mosquittopp.h" + +namespace trygvis { +namespace mqtt_support { + +using namespace mosqpp; + +class mqtt_lib { +public: + mqtt_lib() { + mosquitto_lib_init(); + } + + ~mqtt_lib() { + mosquitto_lib_cleanup(); + } +}; + +} +} + +#endif -- cgit v1.2.3