
65
Class Reference
Sets the reader communications mode to Bluetooth RF. See also the
gui.Button
example in section 4.2.3.1.
Example:
reader.writeSetting(2, 0x7FFFFFFF);
Sets the reader Battery Trigger Confirmation Time to 0x7FFFFFFF milliseconds or ~596
hours (effectively infinite time).
4.3.1.15
unicodeToShiftJis
The
unicodeToShiftJis
method converts a string from Unicode encoding to Shift-JIS
encoding.
Format:
shiftJisString = reader.unicodeToShiftJis(text);
Where:
shiftJisString
– String; text encoded as JIS.
text
– String; text encoded as Unicode.
Example:
myShiftJisString = reader.unicodeToShiftJis(myString);
Sets
myShiftJisString
to the Shift-JIS encoded equivalent of myString.
4.3.2
Properties
This section documents the properties defined for the handheld's
reader
object.
4.3.2.1
onCommand
The
onCommand
property of the handheld calls the specified function when the reader:
Receives a configuration command from a communication port.
Decodes a configuration command from a code read by the handheld.
The application uses this property as an event handler to:
Receive notification of command processing.
Prevent execution of a command.
The function will not be called in response to a
reader.processCommand
call or
commands within a stored-code (“performance strings”). Performance strings are
documented in the Interface Configuration Document.
Return Boolean
true
to instruct the reader to process the command. Return Boolean
false
to suppress the command. When a command is suppressed, the firmware will not
send any response to the host, but the JavaScript application may provide its own
response to the host.