abortReadCard method is used to cancel an ongoing readCard operation. This is helpful when the user wants to stop card reading before it completes, such as during a timeout, user cancellation, or application logic control.
Request
JSON-RPC 2.0All methods in TweezerComm follow a JSON-RPC 2.0 structure. See Get Started for more details on how the requests are structured and sent.
abortReadCard, and the params must include the fixed value device:
Request Parameters
See the table below for a description of the available request parameters for this method.| Name | Type | Description |
|---|---|---|
params | array | Must contain the value device |
Response
A successful request will return a response similar to the one in the code block below:Response Parameters
Below is a table with all the possible response parameters and their description:| Name | Type | Description |
|---|---|---|
statusCode | integer | Operation status (0 = success) |
statusMessage | string | Operation result message |