Velocity API: Device.led()

Version 1

    Return To Index

    Device.led()

    Overview

    Sends flash commands to the device scanner LED.

    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);
    ParameterDescriptionTypeRequiredNotes
    colorThe color of the LED when flashing.IntegerRequiredAccepted value format is 0x000000.
    onTimeThe number of milliseconds for the LED to be on while flashing.IntegerRequiredAccepted values in milliseconds are any number between 0 and 2550.
    offTimeThe number of milliseconds for the LED to be off while flashing.IntegerRequiredAccepted values in milliseconds are any number between 0 and 2550.
    repeatThe number of occurrences for this flashing action.IntegerRequiredValid values are any number between are 0 to 127. Entering -1 will force the LED flash to occur endlessly.

     

    Example 1

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