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.IO
Assembly:
Brainboxes.IO (in Brainboxes.IO.dll) Version: 1.5.0.8
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 (Optional)
- Type: SystemString
By default when installing a virtual COM port using Brainboxes Boost.IO Manager the lowest available COM port is chosen (greater than 2) - baudRate (Optional)
- Type: SystemInt32
Baud rate is irrelevant to brainboxes EDDevice as the serial port is virtual, but some software may be expecting to set/read it - Timeout (Optional)
- Type: SystemInt32
The Read and Write Timeout for data, defaults to 2000ms
See Also