system.serial
Serial Functionsβ
The following functions give you access to read and write through serial ports.
ποΈ closeSerialPort
Closes a previously opened serial port.
ποΈ configureSerialPort
Configure a serial port for use in a later call.
ποΈ openSerialPort
Opens a previously configured serial port for use.
ποΈ port
Returns a context manager wrapping a serial port, allowing the rest of the system to interact with that port.
ποΈ readBytes
Read numberOfBytes bytes from a serial port.
ποΈ readBytesAsString
Read numberOfBytes bytes from a serial port and convert them to a String.
ποΈ readLine
Attempts to read a line from a serial port.
ποΈ readUntil
Reads a byte at a time from a serial port until a delimiter character is encountered.
ποΈ sendBreak
Sends a break signal for approximately millis milliseconds.
ποΈ write
Write a String to a serial port using the platforms default character encoding.
ποΈ writeBytes
Write a List[Byte] to a serial port.
Functions by Scopeβ
Gateway
Vision
Perspective