Commit 0983d521 authored by Axel Auweter's avatar Axel Auweter
Browse files

W.I.P. 2

parent db5f42c5
......@@ -70,6 +70,8 @@ void mqttCallback(SimpleMQTTMessage *msg)
uint64_t ts = diff.total_nanoseconds();
uint32_t sid = msgCtr;
msg->dump();
#if 0
key = convert(&sid, sizeof(msgCtr));
name = convert(&ts, sizeof(ts));
......@@ -165,7 +167,7 @@ int main(void) {
if (sensordataCf<0) {
cout << "Creating sensordata column familiy...\n";
query = "CREATE TABLE sensordata ( sid int, ts bigint, value float, PRIMARY KEY (sid, ts)) WITH COMPACT STORAGE;";
query = "CREATE TABLE sensordata ( sid bigint, ts bigint, value bigint, PRIMARY KEY (sid, ts)) WITH COMPACT STORAGE;";
cout << "Sending CQL statement: " << query;
myClient->execute_cql3_query(res, query, Compression::NONE, ConsistencyLevel::ONE);
cout << " --> Success!\n";
......
......@@ -65,7 +65,7 @@
/*
* Enable verbose output of the MQTT server.
*/
#define SimpleMQTTVerbose
//#define SimpleMQTTVerbose
#include "simplemqttservermessage.h"
typedef void (*SimpleMQTTMessageCallback)(SimpleMQTTMessage*);
......
......@@ -64,6 +64,7 @@ public:
ssize_t appendRawData(void* buf, size_t len);
bool complete();
bool isPublish();
// std::string getTopic();
void dump();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment