adapnex::drivers::modbus::ModbusMaster::Reconnect

Reconnects the underlying TCP connection if TCP transport is used.

Synopsis

Declared in <adapnex/drivers/modbus.h>

bool
Reconnect(core::Duration timeout);

Return Value

True if the connection was successfully established, otherwise false.

Parameters

Name

Description

timeout

The timeout duration for the reconnect operation.

Created with MrDocs