EXAMPLE 1

Send an SMS message when relay output 1 is turned on or off.


O1 OUTPUT 1






AT+SMS=+391234,"Output 1 operated"





trigger event is the change of state of relay output 1.

We do not define any conditions because the message will be sent both when the contact is opened and closed.

The first action contains the command that sends an SMS message to the number +391234 with the text "Output 1 operated".

EXAMPLE 2

The device answers the incoming call of an active user and plays an audio message (previously created and saved in the P unit) if the call occurs when there is less than 1 minute before output 4 is switched off, which was activated by time (not with expiration date).


CAE CALL FROM USER

$O42=1 OUTPUT 4 STATUS = 1

$O43<60 OUTPUT 4 REMAINING TIME < 60




ATA

AT#WAIT=3

AT+AUDIO=releasing.wav

AT#WAIT=9 AT#WAIT=9

ATH

trigger event is an incoming call from an active user.

The first condition to check is the output is currently active.

The second condition to check is that the time remaining to switch off is less than 60 seconds.

The first action contains the command to answer the call.

The second action contains the command to enter a wait of 3 seconds.

In the third action, the command plays the audio file in releasing.wav within the current call.

The fourth action contains the command to introduce a waiting time of 9 + 9 seconds to give time to complete the reproduction of the audio message which is supposed to be less than 18 seconds.

The fifth action action contains the command to hang up the call.