1#ifndef H_EXTENSIONS_CUTEHMI_MODBUS_4_INCLUDE_CUTEHMI_MODBUS_TCPCLIENT_HPP
2#define H_EXTENSIONS_CUTEHMI_MODBUS_4_INCLUDE_CUTEHMI_MODBUS_TCPCLIENT_HPP
4#include "AbstractClient.hpp"
5#include "internal/QtTCPClientBackend.hpp"
30 Q_PROPERTY(
QString host READ host WRITE setHost NOTIFY hostChanged)
31 Q_PROPERTY(
int port READ port WRITE setPort NOTIFY portChanged)
32 Q_PROPERTY(
int slaveAddress READ slaveAddress WRITE setSlaveAddress NOTIFY slaveAddressChanged)
40 void setHost(
const QString & host);
44 void setPort(
int port);
46 int slaveAddress()
const;
48 void setSlaveAddress(
int slaveAddress);
50 int timeout()
const override;
52 void setTimeout(
int timeout)
override;
57 void close()
override;
Abstract client.
Definition: AbstractClient.hpp:32
Modbus TCP client.
Definition: TCPClient.hpp:18
void slaveAddressChanged()
static const char * INITIAL_HOST
Definition: TCPClient.hpp:25
Modbus TCP client backend based on Qt Serial Bus.
Definition: QtTCPClientBackend.hpp:18
Definition: TCPClientConfig.hpp:16
static constexpr int MIN_SLAVE_ADDRESS
Definition: TCPClientConfig.hpp:20
static constexpr int MAX_SLAVE_ADDRESS
Definition: TCPClientConfig.hpp:21
static constexpr int INITIAL_TIMEOUT
Definition: TCPClientConfig.hpp:25
static constexpr int INITIAL_PORT
Definition: TCPClientConfig.hpp:23
static constexpr int INITIAL_SLAVE_ADDRESS
Definition: TCPClientConfig.hpp:24