How to set a timeout for ReadHoldingRegisterRequest? #105
129duckflew
started this conversation in
Q&A
Replies: 1 comment
-
|
Request timeout is configured in the client configuration rather than the transport configuration: client = ModbusTcpClient.create(
clientTransport,
cfg ->
cfg.requestTimeout = Duration.ofSeconds(1)
); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, I have only seen the settings related to connection timeout in the global settings as follows
However, the time for a single request remains 5s
Beta Was this translation helpful? Give feedback.
All reactions