![IDTECH Kiosk III Sdk Manual Download Page 25](http://html.mh-extra.com/html/idtech/kiosk-iii/kiosk-iii_sdk-manual_618746025.webp)
6.5 Initialize Kiosk III/IV:
17
case
DeviceState.Disconnected:
//A disconnection has occured with IDT_DEVICE_TYPES type
break
;
case
DeviceState.ConnectionFailed:
//A connection attempt has failed for IDT_DEVICE_TYPES type
break
;
case
DeviceState.TransactionData:
//Transaction data is beign returned in IDTTransactionData cardData
break
;
case
DeviceState.DataReceived:
//Low-level data received
for IDT_DEVICE_TYPES type
break
;
case
DeviceState.DataSent:
//Low-level data sent
for IDT_DEVICE_TYPES type
break
;
case
DeviceState.CommandTimeout:
//Command timeout has occurred for IDT_DEVICE_TYPES type
break
;
case
DeviceState.ToSwipe:
//Awaiting a swipe for IDT_DEVICE_TYPES type
break
;
case
DeviceState.MSRDecodeError:
//Awaiting a swipe for IDT_DEVICE_TYPES type
break
;
case
DeviceState.ToTap:
//Awaiting a contactless tap for IDT_DEVICE_TYPES type
break
;
case
DeviceState.SwipeTimeout:
//Waiting for swipe timed out
break
;
case
DeviceState.TransactionCancelled:
//Transaction has been cancelled
break
;
case
DeviceState.DeviceTimeout:
//Waiting for transaction to complete timed out
break
;
case
DeviceState.TransactionFailed:
//Transaction failed to complete
break
;
case
DeviceState.EMVCallback:
//Callback during EMV transaction retrieved from EMV_Callback emvCallback
break
;
default
:
break
;
}
}
6.5
Initialize Kiosk III/IV:
A Singleton instance has been established in the IDT_KioskIII class. Establish the callback, and then set a connec-
tion to Kiosk III/IV through either USB or Serial.
public
KioskIII_Simple_Demo()
{
InitializeComponent();
IDT_KioskIII.setCallback(MessageCallBack);
//USB Connection:
IDT_KioskIII.useUSB();
//Serial Connection SRED:
//IDT_KioskIII.useSerialPort(1, true);
}
6.6
Sample Project Tutorial
Using Visual Studio 2015, we will create a C# sample project that will interface with the Kiosk III and will perform
the following activities:
• Get firmware version
• Perform CTLS Transaction
IDTech Windows SDK Guide for Kiosk III/IV #80136501-001