2 select active script - #escript – Rainbow Electronics GM862-QUAD-PY User Manual

Page 411

Advertising
background image




AT Commands Reference Guide

80000ST10025a Rev. 5 - 09/07/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 411 of 434

#WSCRIPT - Write Script

SELINT 2

>>> here receive the prompt; then type or send the
textual script, sized 54 bytes


OK

Textual script has been stored

Note

It’s recommended to use the extension .py only for textual script files and
the extension .pyo only for pre-compiled executable script files.

3.5.7.10.2 Select Active Script - #ESCRIPT

#ESCRIPT - Select Active Script

SELINT 0 / 1

AT#ESCRIPT[=
[<script_name>]]

Set command selects either

a) the name of the textual script file that will be compiled and executed

by the Easy Script® compiler at startup according to last
#STARTMODESCR setting, or

b) the name of the pre-compiled executable file that will be executed at

startup according to last #STARTMODESCR setting.


We call this file (either textual or pre-compiled) the current script.

Parameter:
<script_name> - file name, string type (max 16 chars, case sensitive).

Note: all textual script files must have .py extension; all pre-compiled
executable files must have .pyo extension.

Note: <script_name> must match to the name of a file written by
#WSCRIPT in order to have it run.

Note: the command does not check whether a textual script named
<script_name> does exist or not in the Easy Script® related NVM. If the
file <script_name> is not present at startup then the compiler will not
execute.

Note: issuing AT#ESCRIPT<CR> is the same as issuing the Read
command.

Note: issuing AT#ESCRIPT=<CR> is the same as issuing the command
AT#ESCRIPT=””<CR>.

AT#ESCRIPT?

Read command reports as a quoted string the file name of the current
script
.


#ESCRIPT - Select Active Script

SELINT 2

AT#ESCRIPT=
[<script_name>]

Set command selects either

c) the name of the textual script file that will be compiled and executed

by the Easy Script® compiler at startup according to last

Advertising