rasProject_01 / weSweetHome  R. 240
process control       /     RasPi software         by   weinert-automation
Loading...
Searching...
No Matches
modTCP_t Struct Reference

Structure for Modbus TCP. More...

#include <weModbus.h>

Data Fields

char addr [21]
 Modbus IP (4) address as string. More...
 
modbus_t * ctx
 Pointer to (libmodbus) Modbus structure.
 
modBusLinkState_t mlStat
 connection/slave state
 
uint16_t port
 Modbus IP port. More...
 

Detailed Description

Structure for Modbus TCP.

Field Documentation

◆ addr

char addr[21]

Modbus IP (4) address as string.

for server: 0.0.0.0 (accept from all)

◆ port

uint16_t port

Modbus IP port.

default value: 1502; Hint: 502 will need sudo for the server.


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