|
CuteHMI - Modbus (CuteHMI.Modbus.2)
|
1 #ifndef H_EXTENSIONS_CUTEHMI_MODBUS_2_INCLUDE_CUTEHMI_MODBUS_TCPCLIENT_HPP
2 #define H_EXTENSIONS_CUTEHMI_MODBUS_2_INCLUDE_CUTEHMI_MODBUS_TCPCLIENT_HPP
4 #include "AbstractClient.hpp"
5 #include "internal/QtTCPClientBackend.hpp"
27 Q_PROPERTY(
QString host READ host WRITE setHost NOTIFY hostChanged)
28 Q_PROPERTY(
int port READ port WRITE setPort NOTIFY portChanged)
29 Q_PROPERTY(
int slaveAddress READ slaveAddress WRITE setSlaveAddress NOTIFY slaveAddressChanged)
37 void setHost(const
QString & host);
41 void setPort(
int port);
43 int slaveAddress() const;
45 void setSlaveAddress(
int slaveAddress);
50 void close() override;
57 void slaveAddressChanged();
static constexpr int INITIAL_PORT
Definition: TCPClientConfig.hpp:23
Modbus TCP client backend based on Qt Serial Bus.
Definition: QtTCPClientBackend.hpp:16
static const char * INITIAL_HOST
Definition: TCPClient.hpp:23
Abstract client.
Definition: AbstractClient.hpp:18
static constexpr int MIN_SLAVE_ADDRESS
Definition: TCPClientConfig.hpp:20
Modbus TCP client.
Definition: TCPClient.hpp:15
Definition: TCPClientConfig.hpp:14
static constexpr int MAX_SLAVE_ADDRESS
Definition: TCPClientConfig.hpp:21
static constexpr int INITIAL_SLAVE_ADDRESS
Definition: TCPClientConfig.hpp:24