Go to documentation repository
...
It is required to send short message to the “89179190909” number while alarm on the first video camera.
| Code Block |
|---|
OnEvent("CAM","1","MD_START")
{
DoReact("SMS","1","SETUP","phone<+79179190909>,message<camera 1, alarm>");
} |
Set device for message delivery and send message to the “89179190909” number while alarm on the first sensor.
| Code Block |
|---|
OnEvent("GRAY","1","CONFIRM") //confirm alarm from sensor 1
{
DoReact("SMS","1","SETUP","device<>",); //set device for message delivery
DoReact("SMS","1","SETUP","phone<+79179190909>,message<sensor 1, alarm>"); //send message about alarm on the sensor 1 to telephone number
} |
Play the c:\Windows\Media\Tada.wav audio file while receiving sms using the Mail Message Service 2.
| Code Block |
|---|
OnEvent("SMS","2","RECEIVE")
{
DoReact("PLAYER","3","PLAY_WAV","file<c:\Windows\Media\Tada.wav>");
} |