3 - MTSCRA Library Functions
Dynamag, DynaMAX, and eDynamo| Secure Card Reader Authenticator | Programmer’s Reference (WCF)
Page 16
3
MTSCRA Library Functions
MagTek SCRA WCF Library can be hosted by service, IIS or any other application and it also can be
referenced just like a normal .Net dll.
3.1
getDeviceList
This function enumerate devices and return device URIs.
string getDeviceList(string deviceType = "");
Parameter
Description
deviceType
Specifies the device connection type to search. Can be “usb”, “ble” or
“bleemv” or multiple types delimited by “,”. If input is empty string or
null, means search all types.
Return Value:
A string with Devices URIs, delimited by “,”.
3.2
getSDKVersion
Retrieves SDK version.
string getSDKVersion();
Return Value:
The version information of the SDK.
3.3
openDevice
Open an MTSCRA device.
int openDevice(string DeviceName);
Parameter
Description
DeviceName
URI for a device, it can be retrieved by function getDeviceList. If this
parameter is null or empty, will open the first device that can be found.
Return Value:
Zero for success, other for failed.
3.4
closeDevice
Close an MTSCRA device. It will release all resources attach to this device. If device is disconnected,
please call this function to release resource.
void closeDevice();
Return Value:
None.