Device.led()

Overview

Sends flash commands to the device scanner LED.

Added in version 1.2.107

Use Cases

You want to send custom visual alerts to a scanner when the script executes.

Remarks

Only Zebra WT6000 devices with the RS6000 scanner are supported.

Format

Device.led(color,onTime,offTime,repeat);

Parameter Description Type Required Notes
color The color of the LED when flashing. Integer Required Accepted value format is 0x000000.
onTime The number of milliseconds for the LED to be on while flashing. Integer Required Accepted values in milliseconds are any number between 0 and 2550.
offTime The number of milliseconds for the LED to be off while flashing. Integer Required Accepted values in milliseconds are any number between 0 and 2550.
repeat The number of occurrences for this flashing action. Integer Required Valid values are any number between are 0 to 127. Entering -1 will force the LED flash to occur endlessly.

Example

Copy
/* Enable red flash with half-second intervals repeated three times.
 */
 
{
Device.led(#ff0000, 500, 500, 3);
}