Click or drag to resize

SerialConnection Class

A Connection to a Brainboxes Devices using a serial port Note this is different to a Brainboxes device WITH a serial connection (e.g. an Ethernet to Serial Device)
Inheritance Hierarchy

Namespace:  Brainboxes.IO
Assembly:  Brainboxes.IO (in Brainboxes.IO.dll) Version: 1.5.0.0 (1.5.0.0)
Syntax
public class SerialConnection : Connection

The SerialConnection type exposes the following members.

Constructors
  NameDescription
Public methodSerialConnection
Create a Serial connection to a Brainboxes EDDevice First install the virtual com port for the device using Brainboxes Boost.IO Manager
Top
Properties
  NameDescription
Public propertyBaudRate
The serial port baud rate
Public propertyIsAvailable
Whether the Device is Available, e.g. on-line or off-line
(Inherited from Connection.)
Public propertyIsConnected
Whether the Device is Connected
(Inherited from Connection.)
Public propertyPortName
The name of the serial port
Public propertyStream
The Connections underlying stream class
(Inherited from Connection.)
Public propertyTimeout (Overrides ConnectionTimeout.)
Top
Methods
  NameDescription
Public methodConnect
Connect to the ED Device
(Inherited from Connection.)
Public methodDisconnect
Disconnect from the ED Device
(Inherited from Connection.)
Public methodDispose
Dispose of this Brainboxes device
(Inherited from Connection.)
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString
ToString
(Overrides ConnectionToString.)
Top
Events
  NameDescription
Public eventConnectionStatusChangedEvent
When the status of the connection changes this event is raised e.g. when IsConnected changes from false to true or when IsAvailable changes: * for example for a TCPConnection if the IP address is goes from on-line to off-line * or for example for a SerialConnection when the COM name is no longer present or in use by another program
(Inherited from Connection.)
Top
See Also