rasProject_01 / weSweetHome  R. 116 2026-05-14
process control       /     RasPi software         by   weinert-automation
Loading...
Searching...
No Matches
modRS_t Struct Reference

Structure for Modbus RS485 (RTU). More...

#include <weModbus.h>

Data Fields

int baud
 default 9600
uint16_t conErrCnt
 error count for connection trials
modbus_t * ctx
 Pointer to (libmodbus) Modbus structure.
char device [21]
 Modbus RTU / RS485 device address as string.
int hourOffs
 actual offset in hours of local time zone (+ is east)
uint16_t ms
 ms supplement to stmpS
char parity
 default N
modRS485state_t rsState
 interface state
char rTmTxt [34]
 local time as text; length is 32
uint32_t stmpS
 epoch time of last connect [error]; s since 1.1.1970
int stopBits
 default 1

Detailed Description

Structure for Modbus RS485 (RTU).

Field Documentation

◆ device

char device[21]

Modbus RTU / RS485 device address as string.

example: /dev/serial0 (Raspberry's UART GPIO15/16 TxD/RxD) or /dev/ttyS0


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