Commit 6b54da03 authored by Christopher Reis's avatar Christopher Reis

Added ML placeholder

parent 714d403e
...@@ -38,6 +38,11 @@ static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *use ...@@ -38,6 +38,11 @@ static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *use
return size * nmemb; return size * nmemb;
} }
void writeToML(std::string msg){
// CURL *curl;
// CURLcode res;
}
PublishThread::PublishThread(Config &c) PublishThread::PublishThread(Config &c)
: config(c), : config(c),
connection(0) connection(0)
...@@ -173,6 +178,7 @@ void PublishThread::get_v(){ ...@@ -173,6 +178,7 @@ void PublishThread::get_v(){
message.addField(field.c_str(), it.value().get<float>()); message.addField(field.c_str(), it.value().get<float>());
} }
} }
connection->publish(message); connection->publish(message);
} }
} }
......
...@@ -43,6 +43,7 @@ private: ...@@ -43,6 +43,7 @@ private:
PublishThread(const PublishThread& pt); PublishThread(const PublishThread& pt);
PublishThread& operator=(const PublishThread& pt); PublishThread& operator=(const PublishThread& pt);
void setup(); void setup();
void teardown(); void teardown();
......
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