Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
sdk:scripts:sms-control [2015/08/27 07:25]
hess
sdk:scripts:sms-control [2022/08/26 10:51]
dodenhoeft
Line 1: Line 1:
 ====== SDK Script sms-control.are ====== ====== SDK Script sms-control.are ======
-For further information on how to configure see [[configuration:​sms-control|SMS Control]].+ 
 +===== Configuration ===== 
 +  - Enable the SDK: Services =>SDK =>​Administration  
 +  - Services => SDK =>Job Management =>​Scripts => [+] Create a new Script  
 +    * Namee.g. smscontrol  
 +    * Descr. e.g. smscontrol ​  
 +    * Arguments: "​noauth",​ by default you need a password to use the sms controll script. If you want the old behaviour please use the argument noauth  
 +    * choose the sms-control.are from the Example Skript in the select area  
 +  - Services =>SDK => Job Management => Trigger => [+Create a new Trigger  
 +    * Name e.g. sms-in  
 +    * Type: event-based  
 +    * Event: sms-received Put the trigger and the script into one job:  
 +  - Services =>SDK => Job Management => Jobs => [+Create a new Job  
 +    * Name: smsServer  
 +    * Script: smscontrol  
 +    * Trigger: sms-in  
 + 
 +===== Usage ===== 
 +Sending an  SMS to the SIM card number: \\ 
 +First line: <admin password> ​ \\ 
 +Second line: <command argument1 argument2>​ \\ 
 + 
 +==== Example ==== 
 +<code - SMS.txt> 
 +admin01 
 +status 
 +output 1 on 
 +output 2 on 
 +output 1 off 
 +output 2 off 
 +disconnect 
 +connect 
 +reboot 
 +</​code>​ 
 <code c sms-control.are>​ <code c sms-control.are>​
 /* DESC: This script will execute commands received by SMS. /* DESC: This script will execute commands received by SMS.