Function tokio_modbus::client::sync::tcp::connect_slave_with_timeout
source ยท pub fn connect_slave_with_timeout(
socket_addr: SocketAddr,
slave: Slave,
timeout: Option<Duration>,
) -> Result<Context>
Expand description
Connect to any kind of Modbus slave device, probably through a Modbus TCP/RTU gateway that is forwarding messages to/from the corresponding unit identified by the slave parameter.