Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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