SerialCommunicatorGetDefaultTimeout Method

Calculates the default timeout in msec depending on the baud rate. Returns the time in which the reception should be finished.

Definition

Namespace: OddPrg.Communication.Serial
Assembly: OddPrg.Communication.Serial (in OddPrg.Communication.Serial.dll) Version: 2.0.0.2 (2.0.0.2)
C#
public override int GetDefaultTimeout(
	int dataLength,
	int replyLength
)

Parameters

dataLength  Int32
Number of the bytes to be sent
replyLength  Int32
Number of the bytes to be received

Return Value

Int32

See Also