Click or drag to resize

SerialPortAPITryVerifyResponseLine Method

Sends a string of characters and the configured end-of-line sequence via the card's serial port, and waits up to the configured ReadTimeout period for the expected response.

Namespace: RAYLASE.SPICE3.ClientLib
Assembly: RAYLASE.SPICE3.ClientLib (in RAYLASE.SPICE3.ClientLib.dll) Version: 3.6.0
Syntax
C#
public bool TryVerifyResponseLine(
	string message,
	string goodResponse
)

Parameters

message  String
The message string that should be sent.
goodResponse  String
The expected response that indicates success.

Return Value

Boolean
true: if the goodResponse is received,
false: otherwise.
Exceptions
ExceptionCondition
TimeoutExceptionNo response received within the configured ReadTimeout period.
Remarks
Note that the configured SerialPortConfigNewLine will be automatically appended to the transmitted message, and will be expected to terminate the goodResponse.
See Also