Creates an instance of the SerialComm class wiht the specified information.
The serial port name, for example COM1.
The serial port baud rate in bits per second.
The serial port parity-checking protocol.
The serial port standard number of stopbits per byte.
The serial port standard length of data bits per byte.
The handshaking protocol for serial port transmission of data.
Gets or sets the serial port baud rate in bits per second. Default value is 9600
Gets or sets the serial port baud rate in bits per second. Default value is 9600
Gets the state of the Clear-to-Send line. true if the Clear-to-Send line is detected; otherwise, false.
Gets the state of the Data Set Ready (DSR) signal. true if a Data Set Ready signal has been sent to the port; otherwise, false.
Sets a value that enables the Data Terminal Ready (DTR) signal.
Gets or sets the character sequence that marks the end of an incoming frame, for example "\r\n" or "\u0003" (ETX). Once this sequence is found in the incoming stream, the frame is considered complete (unless frameTrailerLength is also set, see below) and onDataReceived is raised. Default value is "\r\n", which preserves the classic line-based (CR/LF terminated) behavior.
Gets or sets the character sequence that marks the end of an incoming frame, for example "\r\n" or "\u0003" (ETX). Once this sequence is found in the incoming stream, the frame is considered complete (unless frameTrailerLength is also set, see below) and onDataReceived is raised. Default value is "\r\n", which preserves the classic line-based (CR/LF terminated) behavior.
Gets or sets the number of extra bytes expected right after frameTerminator before the frame is considered complete. Useful for protocols that append a fixed-length, unpredictable trailer after the terminator, such as a checksum byte (e.g. an LRC byte following an ETX terminator). Default value is 0 (no trailer expected).
Gets or sets the number of extra bytes expected right after frameTerminator before the frame is considered complete. Useful for protocols that append a fixed-length, unpredictable trailer after the terminator, such as a checksum byte (e.g. an LRC byte following an ETX terminator). Default value is 0 (no trailer expected).
Gets whether the port is open.
Gets or sets the serial port name, for example COM1. Default value is "COM1"
Gets or sets the serial port name, for example COM1. Default value is "COM1"
Sets a value that enables the Request to Send (RTS) signal.
Closes the port connection
Occurs when communication is close.
The callback function
Occurs when data is received.
The callback function
Occurs when an error is thrown.
The callback function
Opens a new serial port connection
Sends the specified string to the serial port.
The string to send to the serial port.
It represents a serial port resource at the client side.