← Back to SmartCardEmulation domain

SmartCardEmulation.reportStatusResult

Reports the successful result of a |SCardStatus| call. This maps to: PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa

Domain: SmartCardEmulation experimental

Parameters

NameTypeDescription
requestIdstring
readerNamestring
stateConnectionState
atrstring
protocol (optional)Protocol

Example Request

{
  "id": 1,
  "method": "SmartCardEmulation.reportStatusResult",
  "params": {
    "requestId": "request-1",
    "readerName": "readerName-value",
    "state": "state-value",
    "atr": "atr-value"
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('SmartCardEmulation.reportStatusResult', {"requestId": "request-1", "readerName": "readerName-value", "state": "state-value", "atr": "atr-value"});
console.log(result);