public interface SerialPortOperationResult extends OperationResult
SerialOperationResult
s are generated by the Serial
device implementation to notify the application of the completion of a
requested operation.
The getResultCode()
method inherited from
OperationResult
is used to retrieve the result of
the operation. Constants are defined in OperationResult for that purpose.
Modifier and Type | Field and Description |
---|---|
static int |
LEVEL_3_HALTED
The error resulted from the expiration of a serialport disconnected.
|
CANCEL, ERR_DEVICE_BASE, ERR_GENERAL_ERROR, ERR_NO_INFO, ERR_NO_PERMISSION, ERR_TIMEOUT, NONE, SUCCESS
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Get the result data buffer.
|
int |
getDataLength()
Get the result data length.
|
getResultCode
static final int LEVEL_3_HALTED