GXDN: Gurux Developer Network
SendATCommand Method (command, waitTime, expectedResult)
NamespacesGurux.SMSGXSMSSendATCommand(String, Int32, String)
Sends an AT command, given as parameter, to the modem. Returns the result of the command, if available.
Parameters
command (String)
An executed command.
waitTime (Int32)
An executed command.
expectedResult (String)
An expected result.
Examples
Turn modem speaker off.
CopyC#
Gurux.SMS.GXSMS sms = new Gurux.SMS.GXSMS();
string[] modems = (string[]) sms.Search(5000, true);
sms.Port = modems[0];
sms.SMSCheckInterval = 0;
sms.Open();
string ret = sms.SendATCommand("ATM0\r", 2000, "OK");
CopyVB.NET
Dim sms As Gurux.SMS.GXSMS
sms = New Gurux.SMS.GXSMS()
Dim modems As String()
modems = sms.Search(5000, True)
sms.Port = modems(0)
sms.SMSCheckInterval = 0
sms.Open()
sms.SendATCommand("ATM0\r", 2000, "OK")
CopyVBScript
dim sms as GuruxSMS.IGXSMS4
set sms = CreateObject("GuruxSMS.GXSMS")
Dim modems As String()
modems = sms.Search(5000, True)
sms.Port = modems(0)
sms.SMSCheckInterval = 0
sms.Open()
sms.SendATCommand("ATM0\r", 2000, "OK")

Assembly: Gurux.SMS (Module: Gurux.SMS) Version: 5.0.0.1