rodbus (C API) 1.6.0-RC1
Loading...
Searching...
No Matches
rodbus_request_param_t Struct Reference

Address and timeout parameters for requests. More...

#include <rodbus.h>

Data Fields

uint8_t unit_id
 Modbus address for the request. More...
 
uint64_t timeout
 Response timeout for the request. It covers sending the request and receiving the response. A request that can't be sent in time fails with an I/O error, and the connection (or serial port) is closed and reopened, whatever the channel's limit on consecutive response timeouts. A response that doesn't arrive in time is a response timeout. On a serial port, the delay between frames is part of sending the request. A zero timeout is replaced by one millisecond; any other duration is used as given. More...
 

Detailed Description

Address and timeout parameters for requests.

Field Documentation

◆ timeout

uint64_t rodbus_request_param_t::timeout

Response timeout for the request. It covers sending the request and receiving the response. A request that can't be sent in time fails with an I/O error, and the connection (or serial port) is closed and reopened, whatever the channel's limit on consecutive response timeouts. A response that doesn't arrive in time is a response timeout. On a serial port, the delay between frames is part of sending the request. A zero timeout is replaced by one millisecond; any other duration is used as given.

Note
The unit is milliseconds

◆ unit_id

uint8_t rodbus_request_param_t::unit_id

Modbus address for the request.


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