SerialPort class
A single linux serial port.
- Annotations
-
- @immutable
Constructors
- SerialPort(String path, int major, int minor, String description)
Properties
- description → String
-
A description of this serial port, determined by the
major and minor numbers.
final
- file → File
-
Creates a File from path and returns it
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- major → int
-
The major number of the device
final
- minor → int
-
The minor number of the device
final
- name → String
-
The name of the device file of the serial port,
for example
ttyUSB0
for a USB serial port.no setter - path → String
-
The path of the serial port inside of
/dev
final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
{Baudrate? baudrate}) → SerialPortHandle - Opens the serial port for reading and writing and returns a handle to it.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited