|
EXAMPLE 1 |
||
|
When an active, registered user sends an SMS containing exclusively the text "S1", the device processes the message, immediately switches on output 1, and transmits an SMS confirmation back to the sender to verify the action. |
||
|
|
|
SME SMS FROM USER |
|
|
$N24=S1 SMS LAST TEXT = S1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
out1=1 |
|
|
|
AT+SMS=$N23,"Output 1 on" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trigger event is the receipt of an SMS message from an active user. The first condition to check is that the text of the message received is equal (exactly) to S1. The first action contains the command that activates output 1. The second action contains the command that sends the text "Output 1 on" to the number from which the last SMS message was sent (N23). |
||
|
EXAMPLE 2 |
||
|
When an active, registered user sends an SMS containing exactly the text "R1", the device processes the message, turns off output 1, immediately turns it back on, and transmits a confirmation text back to the sender. |
||
|
|
|
SME SMS FROM USER |
|
|
$N24)R1 SMS LAST TEXT ( R1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
out1=0 |
|
|
|
AT+SMS=$N23,"Output 1 off" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trigger event is the receipt of an SMS message from an active user. The first condition to check is that the SMS message received contains (also) the text R1. The first action contains the command that turns output 1 off. The second action contains the command that sends the text "Output 1 off" to the number from which the last SMS message was sent (N23). |
||
|
EXAMPLE 3 |
||
|
When an SMS message is received from an unknown or unregistered number, the device automatically blocks any command execution. Instead, it extracts the metadata of the unauthorized attempt—specifically the current date, time, and the sender's phone number—and appends it as a new log entry into a text file stored inside the LOGS folder on the SD card. Finally, the system transmits an automated reply back to the sender informing them that they are not authorized to control the device. |
||
|
|
|
SMU SMS FROM UNKNOWN |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AT#AFILE=S:LOGS/log.txt,T,"$D14 $D15 : $N23" |
|
|
|
AT+SMS=$N23,"You are not an authorized user of $D01" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trigger event is the receipt of an SMS message from an unknown. The first action contains the command that appends to the log.txt file in the LOGS folder of the unit S:t (SD card) a line containing: The second action contains the command that sends the text "You are not an authorized user of" followed by the device name (D01) to the number from which the last SMS message was sent (N23). |
||
