Portopen method, Readerid method, Portopen – MagTek BLUETOOTH SWIPE READER User Manual
Page 18: Method, Readerid
Bluetooth Java Applet Reference Manual
12
The OpenPort method has these parts:
Example
int stat = OpenPort(“COM7”, ”9600”, “8”, “1”, “N” );
This returns a zero (0) if the port opened with the parameters.
PORTOPEN METHOD
Open or Close the serial port.
Syntax
boolean PortOpen(boolean open)
Remarks
This function is for backward compatibility with OCX. The new OpenPort method is also
available.
The PortOpen method has this part:
Example
// PortOpen requires three steps, sets the device port, sets the device settings and call
PortOpen(true).
int stat = 1;
DevicePort(7);
// assume my port is 7
stat = DeviceSettings(“9600,N,8,1”);
PortOpen(true);
// open the port
PortOpen(false);
// close the port
READERID METHOD
Returns an empty string . (RFU)
Part
Data Type
Description
sPortname
String
The port name is a combination of the word
“COM” and the port number, e.g. If the Bluetooth
is connected to port 7, then the portName is
COM7.
sBaudRate
String
Baud Rate
sDataBits
String
Data Bits
sStopBits
String
Stop Bits
sParityType String
Parity
Part
Data Type
Description
open
Boolean
open can be true or false