mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-07 12:06:58 +03:00
28 lines
663 B
C++
28 lines
663 B
C++
#pragma once
|
|
#include "ClassFlow.h"
|
|
|
|
#include "ClassFlowPostProcessing.h"
|
|
|
|
#include <string>
|
|
|
|
class ClassFlowMQTT :
|
|
public ClassFlow
|
|
{
|
|
protected:
|
|
std::string uri, topic, topicError, clientname, topicRate, topicTimeStamp;
|
|
std::string OldValue;
|
|
ClassFlowPostProcessing* flowpostprocessing;
|
|
std::string user, password;
|
|
void SetInitialParameter(void);
|
|
|
|
public:
|
|
ClassFlowMQTT();
|
|
ClassFlowMQTT(std::vector<ClassFlow*>* lfc);
|
|
ClassFlowMQTT(std::vector<ClassFlow*>* lfc, ClassFlow *_prev);
|
|
|
|
bool ReadParameter(FILE* pfile, string& aktparamgraph);
|
|
bool doFlow(string time);
|
|
string name(){return "ClassFlowMQTT";};
|
|
};
|
|
|