#ifndef MQTTPUB_H #define MQTTPUB_H #include #include #include #include #include #include #include #include class MqttData{ public: explicit MqttData(QString t="",QByteArray d=""){ topic = t; data = d; } QString topic; QByteArray data; }; class JZMqttPub : public QThread { Q_OBJECT public: explicit JZMqttPub(QObject *parent = nullptr); void run(); void stop(); void devMessage(MqttData dev); signals: void mqttData(QString mqtt_msg); void dataListLog(QString msg); public slots: private: bool keep; QList mqttDataList; }; #endif // MQTTPUB_H