22.01.2015 Views

this SIM5218 AT command manual - Cooking Hacks

this SIM5218 AT command manual - Cooking Hacks

this SIM5218 AT command manual - Cooking Hacks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

23 CSCRIPT Commands<br />

23.1 <strong>AT</strong>+CSCRIPTSTART Start running a LUA script file.<br />

Description<br />

The <strong>command</strong> is used to start running a LUA script file. The script file must exist in c:\ in the<br />

module EFS. This <strong>command</strong> shouldn’t be used by sio LIB in LUA script files.<br />

SIM PIN<br />

NO<br />

References<br />

Vendor<br />

Syntax<br />

Test Command<br />

<strong>AT</strong>+CSCRIPTSTART=<br />

Write Command<br />

<strong>AT</strong>+CSCRIPTSTART=”<br />

”[ , ”<br />

”]<br />

Responses<br />

+CSCRIPTSTART: ”FILENAME”<br />

OK<br />

Responses<br />

OK<br />

+CSCRIPT: 0<br />

ERROR<br />

OK<br />

+CSCRIPT: <br />

Defined values<br />

<br />

The script file name.<br />

<br />

Whether report the LUA compiling error or running error to TE.<br />

0 – Not report.<br />

1 – Report.<br />

<br />

The error code of running script.<br />

Examples<br />

<strong>AT</strong>+CSCRIPTSTART=”mytest.lua”<br />

OK<br />

+CSCRIPT: 0<br />

<strong>AT</strong>+CSCRIPTSTART=<br />

OK

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!