Command smartcard.insertedcard

Parameters

  1. slot [integer]
    Defines which slot is used by the command.
    • 1: main
    • 2: sam1
    • 3: sam2
    • 4: sam3
    • 5: sam4
  2. variablereturn [integer or string]
    Variable that will store the return of the command.

Example


In the example above, the command smartcard.insertedcard checks whether or not the card is inserted in the defined slot. If there is no card in the slot, the return will be -2, otherwise it will be 1.