The Timeout value gets or sets timeout in milliseconds, which is
the maximum time for which the computer will wait for a response from the GSM
Modem/Phone after sending a command.
The Timeout property value is of Long Integer type and accepts a value between
500 and 60000
Namespace: mCore
Assembly: mCoreLib (in mCoreLib.dll)
| Visual Basic |
| Public Class MyClass Public WithEvents objSMS As New mCore.SMS Public Sub ModemConnect() Try objSMS.Port = "COM1" objSMS.BaudRate = mCore.BaudRate.BaudRate_19200 objSMS.DataBits = mCore.DataBits.Eight objSMS.StopBits = mCore.StopBits.One objSMS.Parity = mCore.Parity.None objSMS.FlowControl = mCore.FlowControl.RTS_CTS objSMS.Timeout = 15000 objSMS.Connect() Catch ex As mCore.GeneralException MsgBox(ex.Message, MsgBoxStyle.Critical, "mCore Demo") Catch ex As Exception End Try End Function End Class |
| C# |
| class MyClass { public mCore.SMS objSMS = new mCore.SMS(); public static void ModemConnect() { try { objSMS.Port = "COM1"; objSMS.BaudRate = mCore.BaudRate.BaudRate_19200; objSMS.DataBits = mCore.DataBits.Eight; objSMS.StopBits = mCore.StopBits.One; objSMS.Parity = mCore.Parity.None; objSMS.FlowControl = mCore.FlowControl.RTS_CTS; objSMS.Timeout = 15000; objSMS.Connect(); } catch
(mCore.GeneralException e) |
mCore.SMS.Port Property
mCore.SMS.BaudRate Property
mCore.SMS.DataBits Property
mCore.SMS.StopBits Property
mCore.SMS.Parity Property
mCore.SMS.FlowControl Property
mCore.SMS.IsConnected Property
mCore.SMS.Connect Method
mCore.SMS.Disconnect Method
mCore.SMS.ReadIntervalTimeout Property