1 #ifndef H_EXTENSIONS_CUTEHMI_MODBUS_2_INCLUDE_CUTEHMI_MODBUS_RTUCLIENT_HPP
2 #define H_EXTENSIONS_CUTEHMI_MODBUS_2_INCLUDE_CUTEHMI_MODBUS_RTUCLIENT_HPP
4 #include "AbstractClient.hpp"
5 #include "internal/QtRTUClientBackend.hpp"
30 Q_PROPERTY(
QString port READ port WRITE setPort NOTIFY portChanged)
31 Q_PROPERTY(QSerialPort::Parity parity READ parity WRITE setParity NOTIFY parityChanged)
32 Q_PROPERTY(QSerialPort::BaudRate baudRate READ baudRate WRITE setBaudRate NOTIFY baudRateChanged)
33 Q_PROPERTY(QSerialPort::DataBits dataBits READ dataBits WRITE setDataBits NOTIFY dataBitsChanged)
34 Q_PROPERTY(QSerialPort::StopBits stopBits READ stopBits WRITE setStopBits NOTIFY stopBitsChanged)
35 Q_PROPERTY(
int slaveAddress READ slaveAddress WRITE setSlaveAddress NOTIFY slaveAddressChanged)
43 void setPort(const
QString & port);
45 QSerialPort::Parity parity() const;
47 void setParity(QSerialPort::Parity);
49 QSerialPort::BaudRate baudRate() const;
51 void setBaudRate(QSerialPort::BaudRate baudRate);
53 QSerialPort::DataBits dataBits() const;
55 void setDataBits(QSerialPort::DataBits dataBits);
57 QSerialPort::StopBits stopBits() const;
59 void setStopBits(QSerialPort::StopBits stopBits);
61 int slaveAddress() const;
63 void setSlaveAddress(
int slaveAddress);
68 void close() override;
75 void baudRateChanged();
77 void dataBitsChanged();
79 void stopBitsChanged();
81 void slaveAddressChanged();