Set the bus timeout for Modbus/RTU communication
SetModbusTimeout( ms )
Set the timeout in milliseconds that bus commands will wait for a device to reply.
ms | Timeout in milliseconds |
This function returns no value.
SetModbusTimeout(1000); // Bus commands will wait up to 1s for replies.