33 lines
719 B
C++
33 lines
719 B
C++
#ifndef CANDATALOGGER_H
|
|
#define CANDATALOGGER_H
|
|
#include <QString>
|
|
#include "MQTTMessage.h"
|
|
#include <QList>
|
|
#include "CANMessage.h"
|
|
#include "MQTTClientWrapper.h"
|
|
#include <QTimer>
|
|
|
|
class CCANDataLogger
|
|
{
|
|
public:
|
|
CCANDataLogger();
|
|
|
|
int LogNewData(const QList<CCANMessage*> *MsgList);
|
|
|
|
|
|
//MQTT logging
|
|
QString mTopicDeviceString;
|
|
QList<CMQTTMessage> mMQTTMsgList;
|
|
CMQTTClientWrapper *mMQTTCLient;
|
|
QList<CCANMessage> mCANMsgList;
|
|
CMQTTMessage GetMQTTMessage(CCANMessage* Message, bool Format = false);
|
|
|
|
int SetMQTTTopicDevice(QString DeviceString);
|
|
int SetMQTTClient(CMQTTClientWrapper *MQTTClient);
|
|
|
|
QList<CMQTTMessage> *GetMQTTMessagesList();
|
|
|
|
};
|
|
|
|
#endif // CANDATALOGGER_H
|