ClassFlowMQTT.h 792 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include "ClassFlow.h"
  3. #include "ClassFlowPostProcessing.h"
  4. #include <string>
  5. class ClassFlowMQTT :
  6. public ClassFlow
  7. {
  8. protected:
  9. std::string uri, topic, topicError, clientname, topicRate, topicTimeStamp, topicUptime, topicFreeMem;
  10. std::string OldValue;
  11. ClassFlowPostProcessing* flowpostprocessing;
  12. std::string user, password;
  13. int SetRetainFlag;
  14. int keepAlive;
  15. std::string maintopic;
  16. void SetInitialParameter(void);
  17. public:
  18. ClassFlowMQTT();
  19. ClassFlowMQTT(std::vector<ClassFlow*>* lfc);
  20. ClassFlowMQTT(std::vector<ClassFlow*>* lfc, ClassFlow *_prev);
  21. string GetMQTTMainTopic();
  22. bool ReadParameter(FILE* pfile, string& aktparamgraph);
  23. bool doFlow(string time);
  24. string name(){return "ClassFlowMQTT";};
  25. };