
69
Class Reference
Ensures there at least two decodes per attempt; otherwise, invalidates the single decode.
Each decode found in the field of view will be decoded only once per attempt, so this
example ensures there are two distinct symbols in the field of view. The reader must have
been configured (section 3.8) to support multiple reads per attempt.
4.3.2.5
onIdle
The
onIdle
property of the
reader
object provides processing control to the application
program whenever the reader is idle; i.e., no events (such as button presses) are active or
queued. This event is posted when the JavaScript has nothing else queued and is not
related to the handheld active time (setting hex 32).
Format:
function onIdle()
{
/* processing statements */
}
reader.onIdle = onIdle;
Note: This method does not return a value.
Example:
function onIdle()
{
reader.processCommand(‘.’, “\x22\x05\x32\x64”);
}
reader.onIdle = onIdle;
Flashes both LEDs on the OHV300 green 5 times, with LEDs on for ½ second and off for 1
second.
4.3.2.6
onStandby
The
onStandby
property of the
reader
object provides processing control to the
application program whenever the reader is about to enter the standby mode.
Format:
function onStandby()
{
/* processing statements */
}
reader.onStandby = onStandby;