Command smartcard.closereader

The command smartcard.closereader is used to terminate the process of communication with the smart card.

Parameters

  1. slot [integer]
    slot number that was opened with the command smartcard.startreader.
  2. variablereturn [integer]
    Return of the command, where:
    • -1: Invalid slot
    • 1: Slot successfully closed

Example


In the example above, The command smartcard.startreader is used to start the reader and try to read a card; after that the command inttostring is used to convert and display the variable using the command display.

Then the command smartcard.closereader is used to close the reader communication, and the result of the operation is displayed.