QModbusTcpServer Class | Qt Serial Bus 5.6

Qt Documentation (Technology Preview) | Qt Serial Bus | C++ Classes | QModbusTcpServer

Qt 5.6.2 Reference Documentation

# QModbusTcpServer Class

The QModbusTcpServer class represents a Modbus server that uses a TCP server for its communication with the Modbus client. More...

Header: | #include <QModbusTcpServer>
qmake: | QT += serialbus
Since: | Qt 5.6
Inherits: | QModbusServer

- List of all members, including inherited members

## Public Functions

| QModbusTcpServer(QObject *parent = nullptr)
| ~QModbusTcpServer()

- 10 public functions inherited from QModbusServer
- 7 public functions inherited from QModbusDevice
- 31 public functions inherited from QObject

### Additional Inherited Members

- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 1 signal inherited from QModbusServer
- 2 signals inherited from QModbusDevice
- 2 signals inherited from QObject
- 1 public variable inherited from QObject
- 10 static public members inherited from QObject
- 4 protected functions inherited from QModbusServer
- 4 protected functions inherited from QModbusDevice
- 9 protected functions inherited from QObject
- 2 protected variables inherited from QObject

## Detailed Description

The QModbusTcpServer class represents a Modbus server that uses a TCP server for its communication with the Modbus client.

Communication via Modbus requires the interaction between a single Modbus client instance and single Modbus server. This class provides the Modbus server implementation via a TCP server.

Modbus TCP networks can have multiple servers. Servers are read/written by a client device represented by QModbusTcpClient.

## Member Function Documentation

### QModbusTcpServer::QModbusTcpServer(QObject *parent = nullptr)

Constructs a QModbusTcpServer with the specified parent. The serverAddress preset is `255`.

### QModbusTcpServer::~QModbusTcpServer()

Destroys the QModbusTcpServer instance.