The BaudRate enumeration specifies the
BaudRate property value.
Namespace: mCore
Assembly: mCoreLib (in mCoreLib.dll)
| Member Name | Description |
| BaudRate_110 | Sets the serial port baud rate to 110 bits per second |
| BaudRate_300 | Sets the serial port baud rate to 300 bits per second |
| BaudRate_1200 | Sets the serial port baud rate to 1200 bits per second |
| BaudRate_2400 | Sets the serial port baud rate to 2400 bits per second |
| BaudRate_4800 | Sets the serial port baud rate to 4800 bits per second |
| BaudRate_9600 | Sets the serial port baud rate to 9600 bits per second |
| BaudRate_14400 | Sets the serial port baud rate to 14400 bits per second |
| BaudRate_19200 | Sets the serial port baud rate to 19200 bits per second |
| BaudRate_38400 | Sets the serial port baud rate to 38400 bits per second |
| BaudRate_57600 | Sets the serial port baud rate to 57600 bits per second |
| BaudRate_115200 | Sets the serial port baud rate to 115200 bits per second |
| BaudRate_230400 | Sets the serial port baud rate to 230400 bits per second |
| BaudRate_460800 | Sets the serial port baud rate to 460800 bits per second |
| BaudRate_921600 | Sets the serial port baud rate to 921600 bits per second |
mCore.GeneralException
| 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.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.Connect(); } catch
(mCore.GeneralException e) |