/* arguments : schnick schnack "s c h n u c k" */
for (i = 0; i < argc ; i++) {
printf (" argv %d: %s\n", i, argv [i]);
}
/* generates:
* argv 0: /scripts/testrun
* argv 1: schnick
* argv 2: schnack
* argv 3: s c h n u c k
*/
In case of syntax errors, arena will usually print error messages as follows (indicating the line and pos-
ition where the parsing error occurred):
/scripts/testrun:2:10:FATAL: parse error, unexpected $, expecting ’;’
Note
It is now possible to upload SDK scripts into the Testing menu via browsing the required
SDK script and clicking on the "Run" button.
SDK Sample Application
As an introduction, you can step through a sample application, namely the SMS control script, which
implements remote control over short messages and can be used to send a system status back to the
sender. The source code is listed in the appendix.
Once enabled, you can send a message to the phone number associated with a SIM / modem. It
generally requires a password to be given on the first line and a command on the second, such as:
admin01
status
We strongly recommend to use authentication in order to avoid any unintended access, however you
may pass noauth as argument to disable it. You can then skip the first line containing the password.
Having a closer look to the script, you will see that you will also be able to restrict the list of permitted
senders. Please inspect the system log for troubleshooting any issues.
The following commands are supported:
status
An SMS with the following information will be returned
•
Signal strength
•
Mobile connection state (up/down)
•
current IP address of the mobile interface
•
current IP address of the VPN interface (if enabled)
connect
This will initiate a Dial-out connection over GSM/UMTS and the VPN connection (if
enabled) and trigger sending an SMS with the following information:
107
© RACOM s.r.o. – MG102iGPRS/UMTS/HSPA+/LTE router
Web Configuration
Содержание MG102i
Страница 2: ......
Страница 147: ...147 RACOM s r o MG102iGPRS UMTS HSPA LTE router Web Configuration...
Страница 148: ...7 8 LOGOUT Log out from Web Manager MG102iGPRS UMTS HSPA LTE router RACOM s r o 148 Web Configuration...
Страница 174: ...174...