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