User’s Manual
33
E.2 Variables Commands
The RabbitLink serial console has the ability to handle SSI (Server Side Includes) variables. These
variables are stored in an xmem buffer. This means that the memory will lose the variables when
power is cycled, although the references to the variables will still exist. Remember that any HTML
file that includes SSI tags must have the file extension
.shtml
.
set port x
This command sets the TCP port number. If the RabbitLink is being used behind a firewall,
it may be necessary to punch a hole in the firewall to allow remote access.
x
The port number. The factory default is 4244.
set dhcp <on | off>
This command enables and disables the use of any DHCP server that is available on the net-
work. The default condition is
on
. This command is only available with RabbitLink serial
console version 2.00.
createv <varname> <vartype> <format> <value> [strlen]
This command creates a variable and stores it in the flash file system on the RabbitLink. The
variable can be referenced in HTML files using SSI; e.g. <!--#echo var="var1"-->).
varname
The name of the variable.
vartype
Type of the variable (
int8
,
int16
,
int32
,
float32
, or
string
)
format
The
printf
-style format specifier (such as
%d
) for outputting the vari-
able
value
The value to assign to the variable
strlen
This parameter is used if the variable is of type
string
is used to give
the maximum length of the string.
EXAMPLES
createv var1 float32 "%.2f" 3.14
createv var2 string "%s" "This is a test." 50
Summary of Contents for RabbitLink EG2100
Page 1: ...RabbitLink EG2100 Network Programming Gateway User s Manual 019 0090 020222 B ...
Page 8: ...4 RabbitLink EG2100 ...
Page 32: ...28 RabbitLink EG2100 ...
Page 44: ...40 RabbitLink EG2100 ...
Page 46: ...42 RabbitLink EG2100 ...
Page 48: ......