Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

SmartCard.Status

Queries current status of smart card in reader.

Component Version macOS Windows Linux Server iOS SDK
SmartCard 6.3 ✅ Yes ✅ Yes ❌ No ✅ Yes, on macOS and Windows ❌ No
MBS( "SmartCard.Status"; SmartCardContext; Selector )   More

Parameters

Parameter Description Example
SmartCardContext The smartcard context reference number. $SmartCardContext
Selector Which value to query.
Can be ReaderName, State, Protocol or ATR.
"State"

Result

Returns value or error.

Description

Queries current status of smart card in reader.
You can call it any time after a successful call to SmartCard.Connect and before a successful call to SmartCard.Disconnect. It does not affect the state of the reader or reader driver.

If you ask for State, the result is Absent, Present, Swallowed, Powered, Negotiable or Specific.

Examples

Query reader name:

MBS( "SmartCard.Status"; $SmartCardContext; "ReaderName" )

See also

Example Databases

This function checks for a license.

Created 13th June 2016, last changed 18th June 2016


SmartCard.SplitValues - SmartCard.Transmit

💬 Ask a question or report a problem