AGENT.Contrib.Hardware.Bluetooth.Connection.Connection C# (CSharp) Method

Connection() public method

public Connection ( string port, IChannel channel, int baudRate = 9600, Parity parity = Parity.None, int dataBits = 8, StopBits stopBits = StopBits.One ) : System
port string
channel IChannel
baudRate int
parity Parity
dataBits int
stopBits StopBits
return System
        public Connection(string port, IChannel channel, int baudRate = 9600, Parity parity = Parity.None,
                          int dataBits = 8, StopBits stopBits = StopBits.One)
        {
            _port = new SerialPort(port, baudRate, parity, dataBits, stopBits);
            _port.DataReceived += _port_DataReceived;
            _channel = channel;

            if (_channel == null) _channel = new ByteArrayChannel();

            
        }