#ifndef MODULEPOSTDATA_H #define MODULEPOSTDATA_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "uart1.h" class modulePostData : public QObject { Q_OBJECT public: explicit modulePostData(QObject *parent = nullptr); //23.8.24 断电数据上传 void powerlost(); private: QNetworkAccessManager *m_pNetWorkManagerAna; QNetworkAccessManager *m_pNetWorkManagerAcc; QNetworkAccessManager *m_pNetWorkManagerDig; QEventLoop m_loop; QString tokenStr = ""; QString urlHead = ""; bool isPost = true; //23.8.24 判断上传是否成功 void authentication(); void postAnaData(); void postAccData(); signals: private slots: void on_authentication(); void on_finishedana(); void on_finishedacc(); void on_finisheddig(); void onTimerTimeOutSendData(); void onPostDigData(); }; #endif // MODULEPOSTDATA_H