Sequencenumber method, Sessionid method, Sessionidhexstring method – MagTek BLUETOOTH SWIPE READER User Manual
Page 21: Sequencenumber, Method, Sessionid, Sessionidhexstring

Methods
15
Syntax
int SendDataSyncWlen(String sRequest, byte[] response)
Remarks
Send specific command to the Bluetooth reader. The result is sent through the response
parameter and the result can also be retrieved with SwipeCommandOutput() method. If
SendDataSyncWlen returns a zero (0) the command executes successfully, otherwise a non-zero
for error.
The SendDataSyncWlen method has these parts:
Example
byte [] response;
int stat = SendDataSyncWlen(“000110”, response);
This returns a zero (0) if the command executes successfully. To retrieve the output, use
SwipeCommandOutput() method. The response will be the data part of the returning hex string
from the reader.
SEQUENCENUMBER METHOD
Returns an integer value indicating the sequence number from the reader. Currently returns 0
only. (RFU)
Syntax
int SequenceNumber()
SESSIONID METHOD
Returns a bye-array indicating the session ID from the reader.
Syntax
byte[] SessionID()
SESSIONIDHEXSTRING METHOD
Returns the MagnePrint data if supported by the reader in 2 Byte Hex format.
Syntax
String SessionIDHexString()
Part
Data Type
Description
sRequest
String
Command
response
Byte[]
Response by reference