Appendix C Java Code Examples; Open Device Example; Close Device Example - Magtek Dynamag Instruction Manual

Secure card reader authenticators programmer's reference (java and java applet)
Hide thumbs Also See for Dynamag:
Table of Contents

Advertisement

Appendix C - Java Code Examples
Appendix C
C.1

Open Device Example

public void openDevice()
{
MTSCRAEventHandler
MagTekUSCRA mMTSCRA = new MagTekUSCRA();
mMTSCRA.init(mEvent);
long rv = mMTSCRA.openDevice("");
if(rv==0)
System.out.print("SUCESS");
else
System.out.print("FAIL");
}
C.2

Close Device Example

public void closeDevice()
{
MTSCRAEventHandler
MagTekUSCRA mMTSCRA = new MagTekUSCRA();
mMTSCRA.init(mEvent);
long rv = mMTSCRA. closeDevice ();
if(rv==0)
System.out.print("SUCESS");
else
System.out.print("FAIL");
}
Dynamag, DynaMAX, eDynamo, mDynamo, tDynamo, DynaWave, and iDynamo 6| Secure Card Reader Authenticators | Programmer's
Reference (Java and Java Applet)
Page 55
Java Code Examples
mEvent
mEvent
= new MTSCRAEventHandler();
= new MTSCRAEventHandler();

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Dynamag and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

DynamaxEdynamoMdynamoTdynamoDynawaveIdynamo 6

Table of Contents