SmartCard.Control
-----------------

Direct control of the reader.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SmartCard](component_SmartCard.md) | [6.3](newinversion63.md) | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ❌ No |

MBS( "SmartCard.Control"; SmartCardContext; ControlCode; InputData; OutputSize ) 

**MBS**( **"SmartCard.Control";** /\* Direct control of the reader. \*/  
**$SmartCardContext**; /\* The smartcard context reference number. \*/   
**$ControlCode**; /\* Control code for the operation. This value identifies the specific operation to be performed. \*/   
**$InputData**; /\* Hex encoded input data.  
Contains the data required to perform the operation. \*/   
**$OutputSize**) /\* The expected output size.  
This is the buffer size the plugin will use for receiving.e.g. 1024 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| SmartCardContext | The smartcard context reference number. | $SmartCardContext |
| ControlCode | Control code for the operation. This value identifies the specific operation to be performed. |  |
| InputData | Hex encoded input data.   Contains the data required to perform the operation. |  |
| OutputSize | The expected output size.   This is the buffer size the plugin will use for receiving. | 1024 |

### Result

Returns hex encoded data or error.

### Description

Direct control of the reader.   
You can call it any time after a successful call to [SmartCard.Connect](SmartCardConnect.md) and before a successful call to [SmartCard.Disconnect](SmartCardDisconnect.md). The effect on the state of the reader depends on the control code.  
### See also

- [SmartCard.Cancel](SmartCardCancel.md)
- [SmartCard.Connect](SmartCardConnect.md)
- [SmartCard.Disconnect](SmartCardDisconnect.md)

This function checks for a license.

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

  
[SmartCard.Connect](SmartCardConnect.md) - [SmartCard.Disconnect](SmartCardDisconnect.md)

[HTML Version](SmartCardControl.shtml)