#ifndef RTUPORT_H #define RTUPORT_H #include #include "QDebug" #include "QtSerialPort/QSerialPort" #include "QtSerialPort/QSerialPortInfo" #include "QTimer" #include "logserialport.h" #include "globalinfo.h" class RtuPort : public QObject { Q_OBJECT public: RtuPort(); void portStart(); private slots: void receiveInfo(); void portWrite(); private: QSerialPort *m_serialPort; QStringList m_serialPortName; QTimer *timer; QTimer *portTimer; LogSerialPort log; QByteArray ret; }; #endif // RTUPORT_H