SMS
Manages sending text messages.
WebVue support - Yes.
Mode |
Mnemonic |
Syntax |
1 |
SEND |
Syntax 1
SMS(Mode, SmsProfile, PhoneNumbers, Subject, Message [, Format]);
Return type: INTEGER.
Argument |
Meaning |
SmsProfile | The name of an SMS profile as configured in Actions.Messages.SMS Profiles. Type STR. |
PhoneNumbers | A list of the phone numbers of the recipients, using semicolon (;) as the separator between the phone numbers. Type STR. |
Subject | The subject of the message. Type STR. |
Message | The body of the message. Type STR. |
Format |
The message format (optional) Type INTEGER.
|
If executed on WebVue the SMS is sent from the WebVue back end.
Execution
Mode |
Mnemonic |
Action |
1 |
SEND |
Set up a message for sending via SMS. |
Return: 0 if successful, else 1. The sending status is recorded in the system variable. |
Example
sub main ()
end sub
sub SendSms ()
SMS("SEND", "SMSPROFILE1","0033687867361","Scada Basic test", "Message sent by SV");
end sub
sub AddSms ()
EVENT ("ADDSMS", "SBSEND","", "", "BitSmsSB", 1, "MSGTEMPLATE1");
end sub
sub DelSms ()
EVENT("DELSMS","SBSEND");
end sub