_ModbusClientConnection Struct Reference

Modbus/TCP client connection. More...

#include <modbus_server.h>

Data Fields

ModbusConnectionState state
 Connection state. More...
 Modbus/TCP server context. More...
 Underlying socket. More...
 TLS context. More...
 Client role OID. More...
systime_t timestamp
 Time stamp. More...
uint8_t requestAdu [MODBUS_MAX_ADU_SIZE]
 Request ADU. More...
size_t requestAduLen
 Length of the request ADU, in bytes. More...
size_t requestAduPos
 Current position in the request ADU. More...
uint8_t requestUnitId
 Unit identifier. More...
uint8_t responseAdu [MODBUS_MAX_ADU_SIZE]
 Response ADU. More...
size_t responseAduLen
 Length of the response ADU, in bytes. More...
size_t responseAduPos
 Current position in the response ADU. More...

Detailed Description

Modbus/TCP client connection.

Definition at line 270 of file modbus_server.h.

Field Documentation

◆ context

Modbus/TCP server context.

Definition at line 273 of file modbus_server.h.

◆ requestAdu

uint8_t requestAdu[MODBUS_MAX_ADU_SIZE]

Request ADU.

Definition at line 280 of file modbus_server.h.

◆ requestAduLen

size_t requestAduLen

Length of the request ADU, in bytes.

Definition at line 281 of file modbus_server.h.

◆ requestAduPos

size_t requestAduPos

Current position in the request ADU.

Definition at line 282 of file modbus_server.h.

◆ requestUnitId

uint8_t requestUnitId

Unit identifier.

Definition at line 283 of file modbus_server.h.

◆ responseAdu

uint8_t responseAdu[MODBUS_MAX_ADU_SIZE]

Response ADU.

Definition at line 284 of file modbus_server.h.

◆ responseAduLen

size_t responseAduLen

Length of the response ADU, in bytes.

Definition at line 285 of file modbus_server.h.

◆ responseAduPos

size_t responseAduPos

Current position in the response ADU.

Definition at line 286 of file modbus_server.h.

◆ role

Client role OID.

Definition at line 278 of file modbus_server.h.

◆ socket

Socket* socket

Underlying socket.

Definition at line 274 of file modbus_server.h.

◆ state

Connection state.

Definition at line 272 of file modbus_server.h.

◆ timestamp

systime_t timestamp

Time stamp.

Definition at line 279 of file modbus_server.h.

◆ tlsContext

TlsContext* tlsContext

TLS context.

Definition at line 276 of file modbus_server.h.

The documentation for this struct was generated from the following file: