LUA

Configure Lua Interpreter

Platform:

OEM719, OEM729, OEM7500, OEM7600, OEM7700, OEM7720, PwrPak7, CPT7, CPT7700, SMART7

Use this command to configure the execution of the Lua interpreter on the receiver. Scripts that appear within the LUAFILELIST log can be executed by the Lua interpreter.

Message ID: 2181

Abbreviated ASCII Syntax:

LUA option [LuaInterpreterArguments]

Abbreviated ASCII Example:

lua start "printarguments.lua 1 2 3 4 5"

Field

Field Type

ASCII Value

Binary Value

Description

Format

Binary Bytes

Binary Offset

1

Command header

-

-

LUA header

This field contains the command name for abbreviated ASCII or the message header for ASCII or Binary.

-

H

0

2

option

START

1

Start the Lua interpreter in the background. The file descriptors stdout, stdin and stderr will not be accessible outside the receiver.

Enum

4

H

PROMPT

2

Start the Lua interpreter in interactive mode and connect stdout, stdio and stderr to the port on which the command was entered. The INTERFACEMODE of that port will be changed to LUA for both RX and TX.

3

LuaInterpreter Arguments

STRING

String containing Lua interpreter options including the name of the script file to run and arguments to pass to the script.

This string must be enclosed in quotes if it contains any spaces.

String arguments within the field must be enclosed by single quotes.

String[400]

Variable

H+4

The format of the Lua Interpreter Arguments is as follows as adapted from the standard Lua 5.3 interpreter:

[options] [script [args]]

Available options are:

  -e stat  execute string 'stat'

  -i       enter interactive mode after executing 'script'.

           (This is added to the arguments when using the PROMPT option of the

           LUA command)

  -l name  require library 'name'