NB3710 User Manual 4.0
/* 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 :
*
argv0 : scriptname
*
argv1 : schnick
*
argv2 : schnack
*
argv3 : s c h n u c k
*/
In case of syntax errors,
arena
will usually print error messages as follows (indicating
the line and position where the parsing error occurred):
/scripts/testrun:2:10:FATAL: parse error, unexpected $, expecting ’;’
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
status of the system 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:
Command
Action
status
Will reply a message to the sender including a short system
overview
connect
Will enable the first WAN link configured on the system
118
Содержание NB3710
Страница 90: ...NB3710 User Manual 4 0 Figure 5 27 Inbound NAPT...
Страница 92: ...NB3710 User Manual 4 0 Figure 5 29 OpenVPN Configuration...
Страница 96: ...NB3710 User Manual 4 0 Figure 5 30 OpenVPN Client Management...
Страница 98: ...NB3710 User Manual 4 0 Figure 5 31 IPsec Administration...
Страница 104: ...NB3710 User Manual 4 0 Figure 5 34 PPTP Tunnel Configuration...
Страница 108: ...NB3710 User Manual 4 0 as GSM voice calls they suffer from unreliability and poor bandwidth...
Страница 114: ...NB3710 User Manual 4 0 Figure 5 37 SDK Administration...
Страница 117: ...NB3710 User Manual 4 0 Figure 5 38 SDK Jobs...
Страница 121: ...NB3710 User Manual 4 0 Figure 5 39 DHCP Server...
Страница 128: ...NB3710 User Manual 4 0 Parameter E Mail Client Settings Password Password used for authentication...
Страница 131: ...NB3710 User Manual 4 0 Figure 5 44 SMS Configuration...
Страница 156: ...NB3710 User Manual 4 0 Figure 5 55 Remote Authentication...
Страница 160: ...NB3710 User Manual 4 0 Figure 5 57 Automatic File Configuration...
Страница 164: ...NB3710 User Manual 4 0 Figure 5 59 Log Viewer...
Страница 165: ...NB3710 User Manual 4 0 Figure 5 60 Tech Support File...
Страница 173: ...NB3710 User Manual 4 0 5 9 LOGOUT Please use this menu to log out from the Web Manager...
Страница 211: ...NB3710 User Manual 4 0 Event Description Table A 3 SDK Examples...