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