Click or drag to resize

SerialPortAPITryVerifyResponse(Byte, Byte) Method

Sends a binary message 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.5.2
Syntax
C#
public bool TryVerifyResponse(
	byte[] message,
	byte[] goodResponse
)

Parameters

message  Byte
The message bytes that should be sent.
goodResponse  Byte
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.
See Also