Address and timeout parameters for requests.
More...
#include <rodbus.hpp>
|
| uint8_t | unit_id |
| | Modbus address for the request. More...
|
| |
| std::chrono::steady_clock::duration | 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...
|
| |
|
|
class | CppRequestParamFriend |
| |
Address and timeout parameters for requests.
◆ RequestParam()
| rodbus::RequestParam::RequestParam |
( |
uint8_t |
unit_id, |
|
|
std::chrono::steady_clock::duration |
timeout |
|
) |
| |
Fully construct RequestParam specifying the value of each field.
- Parameters
-
| unit_id | Modbus address for the request |
| 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. |
- Returns
- New instance of RequestParam
◆ timeout
| std::chrono::steady_clock::duration rodbus::RequestParam::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.
◆ unit_id
| uint8_t rodbus::RequestParam::unit_id |
Modbus address for the request.
The documentation for this struct was generated from the following file: