SerialConnection Constructor |
Create a Serial connection to a Brainboxes EDDevice
First install the virtual com port for the device using Brainboxes Boost.IO Manager
Namespace: Brainboxes.IOAssembly: Brainboxes.IO (in Brainboxes.IO.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public SerialConnection(
string portName = "COM3",
int baudRate = 115200,
int Timeout = 2000
)
Public Sub New (
Optional portName As String = "COM3",
Optional baudRate As Integer = 115200,
Optional Timeout As Integer = 2000
)
new :
?portName : string *
?baudRate : int *
?Timeout : int
(* Defaults:
let _portName = defaultArg portName "COM3"
let _baudRate = defaultArg baudRate 115200
let _Timeout = defaultArg Timeout 2000
*)
-> SerialConnection
Parameters
- portName String (Optional)
- By default when installing a virtual COM port using Brainboxes Boost.IO Manager the lowest available COM port is chosen (greater than 2)
- baudRate Int32 (Optional)
- Baud rate is irrelevant to brainboxes EDDevice as the serial port is virtual, but some software may be expecting to set/read it
- Timeout Int32 (Optional)
- The Read and Write Timeout for data, defaults to 2000ms
See Also