Senddata method, Senddatawlen method, Rxtimeout – MagTek BLUETOOTH SWIPE READER User Manual

Page 19: Method, Senddata, Senddatawlen

Advertising
background image

Methods

13


Syntax
String ReaderID()

RXTIMEOUT METHOD

Sets RX timeout. (RFU)

Syntax
void RXTimeout(int rxtimeout)

The RXTimeout method has this part:




SENDDATA METHOD

Returns a string value from the reader.

Syntax
String SendData(String sRequest)

Remarks
Send specific command to the Bluetooth reader. The length of the sRequest is automatically
calculated by the component. If the command fails or encounters an error, the error will be
returned and the user needs to parse it.

The SendData method has this part:


Example
String response = SendData (“0010”);
The response will be a hexadecimal string returned from the reader. An empty string returned
indicates that the communication between the applet and the reader might most likely be
disconnected.

SENDDATAWLEN METHOD

Returns a string value from the reader.

Syntax
String SendDataWlen(String sRequest)

Part

Data Type

Description

Rxtimeout

int

RX Timeout

Part

Data Type

Description

sRequest

String

Command

Advertising