1#ifndef H_EXTENSIONS_CUTEHMI_MODBUS_4_INCLUDE_CUTEHMI_MODBUS_INTERNAL_TCPCLIENTCONFIG_HPP
2#define H_EXTENSIONS_CUTEHMI_MODBUS_4_INCLUDE_CUTEHMI_MODBUS_INTERNAL_TCPCLIENTCONFIG_HPP
8#include <QReadWriteLock>
20 static constexpr int MIN_SLAVE_ADDRESS = 1;
21 static constexpr int MAX_SLAVE_ADDRESS = 247;
23 static constexpr int INITIAL_PORT = 502;
24 static constexpr int INITIAL_SLAVE_ADDRESS = MIN_SLAVE_ADDRESS;
25 static constexpr int INITIAL_TIMEOUT = 1000;
31 void setHost(
const QString & host);
35 void setPort(
int port);
37 int slaveAddress()
const;
39 void setSlaveAddress(
int slaveAddress);
43 void setTimeout(
int timeout);
49 int port = INITIAL_PORT;
50 int slaveAddress = INITIAL_SLAVE_ADDRESS;
51 int timeout = INITIAL_TIMEOUT;
Definition: Config.hpp:12
Definition: TCPClientConfig.hpp:16
static const char * INITIAL_HOST
Definition: TCPClientConfig.hpp:22