Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.0   12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3    Statistic    FMM    Blog  

Component: SerialPort

Enumerate serial ports and send/receive data.

Version macOS Windows Linux Server iOS SDK
3.0 / 13.0 ✅ Yes ✅ Yes 🔶 19% ✅ Yes, on macOS and Windows ❌ No

Item Details
SerialPort.AvailableBytes
Queries number of bytes available in buffer.
Mac/Win
4.4
SerialPort.Clear
Clears incoming buffer.
Mac/Win
7.4
SerialPort.ClearDataAvailableHandler
Clears the data available handler.
Mac/Win
5.1
SerialPort.Close
Closes serial port.
Mac/Win
3.0
SerialPort.CloseAll
Closes all serial ports.
Mac/Win
5.4
SerialPort.GetBaudRate
Queries the baud rate.
Mac/Win
3.1
SerialPort.GetCTS
Queries current CTS mode.
Mac/Win/Linux
3.4
SerialPort.GetDSR
Queries whether DSR mode is used.
Mac/Win/Linux
3.4
SerialPort.GetDTR
Queries whether DTR (data-terminal-ready) flow control is used.
Mac/Win/Linux
3.4
SerialPort.GetDataBits
Queries the data bit size.
Mac/Win
3.1
SerialPort.GetParity
Queries parity setting.
Mac/Win
5.0
SerialPort.GetRTS
Queries whether to use RTS (request-to-send) flow control.
Mac/Win/Linux
3.4
SerialPort.GetStopBits
Queries number of stop bits.
Mac/Win
5.0
SerialPort.GetTag
Queries tag value.
Mac/Win
13.0
SerialPort.GetXON
Queries if XON/XOFF flow control is used.
Mac/Win
3.4
SerialPort.HasLine
Checks if a line is available.
Mac/Win
7.0
SerialPort.IsSuspended
Checks suspension state.
Mac/Win
7.4
SerialPort.LastError
Returns the system error from last serial port function call.
Mac/Win
3.3
SerialPort.List
Returns list of names of serial ports.
Mac/Win
3.0
SerialPort.Open
Opens a serial port.
Mac/Win
3.0
SerialPort.Path
Queries the path used to open the serial port.
Mac/Win
13.0
SerialPort.Read
Reads bytes from serial port and returns them as text.
Mac/Win
3.0
SerialPort.ReadByte
Reads a single byte to the serial port.
Mac/Win
3.0
SerialPort.ReadHex
Reads bytes from serial port and returns them hex encoded.
Mac/Win
3.0
SerialPort.ReadLine
Reads a line of text from serial port.
Mac/Win
7.0
SerialPort.Resume
Resumes serial port.
Mac/Win
7.4
SerialPort.SetBaudRate
Sets the baud rate.
Mac/Win
3.1
SerialPort.SetCTS
Sets CTS mode.
Mac/Win/Linux
3.4
SerialPort.SetDSR
Sets whether DSR mode is used.
Mac/Win/Linux
3.4
SerialPort.SetDTR
Sets whether DTR (data-terminal-ready) flow control is used.
Mac/Win/Linux
3.4
SerialPort.SetDataAvailableEvaluate
Sets the data available expression for this serial port.
Mac/Win
6.2
SerialPort.SetDataAvailableHandler
Sets the data available handler for this serial port.
Mac/Win
5.1
SerialPort.SetDataBits
Sets data bit size.
Mac/Win
3.1
SerialPort.SetParity
Sets parity setting.
Mac/Win
5.0
SerialPort.SetRTS
Sets whether to use RTS (request-to-send) flow control.
Mac/Win/Linux
3.4
SerialPort.SetStopBits
Sets number of stop bits.
Mac/Win
5.0
SerialPort.SetTag
Sets tag value.
Mac/Win
13.0
SerialPort.SetXON
Sets the serial port to use XON/XOFF mode.
Mac/Win
3.4
SerialPort.Suspend
Suspends serial port.
Mac/Win
7.4
SerialPort.Write
Writes text to the serial port.
Mac/Win
3.0
SerialPort.WriteByte
Writes a single byte to the serial port.
Mac/Win
3.0
SerialPort.WriteHex
Writes text to the serial port.
Mac/Win
3.0

42 functions shown.

10 functions require a paid license (24%) and 32 functions are free to use.

Release notes

Blog Entries

Example Databases

💬 Ask a question or report a problem


Start Chat