#ifndef MODBUSMASTER_H #define MODBUSMASTER_H #include #include class QModbusClient; class QModbusReply; class modBusMaster : public QObject { Q_OBJECT public: explicit modBusMaster(QObject *parent = nullptr); void init(); void open(QString serialPort, quint16 pid); void start(); void deinit(); void close(); void stop(); signals: public slots: private: QModbusReply *lastRequest; QModbusClient *modbusDevice; }; #endif // MODBUSMASTER_H