public DeviceStream(GenThreadManagement.GenThreadManager genThreadManager, SystemServices systemServices) { Stream = null; ByteBuffer = null; SystemServices = systemServices; DeviceError = false; // use original threaded byte buffer GenThreadManager = genThreadManager; }
public SerialStream(GenThreadManagement.GenThreadManager genThreadManager, SystemServices systemServices, String portName, int baudRate = 57600, Parity parity = Parity.None, int dataBits = 8, StopBits stopBits = StopBits.One, Handshake handshake = Handshake.None, int readTimeout = 3000, int writeTimeout = 20000) : base(genThreadManager, systemServices) { SerialPort = new SerialPort(); PortName = portName; BaudRate = baudRate; DataBits = dataBits; StopBits = stopBits; Parity = parity; Handshake = handshake; ReadTimeout = readTimeout; WriteTimeout = writeTimeout; IsOpen = false; ConfigurePort(); }
//public override String DeviceName { get; set; } public BluetoothStream(GenThreadManagement.GenThreadManager genThreadManager, SystemServices systemServices) : base(genThreadManager, systemServices) { }