Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

SerialPort.HasLine

Checks if a line is available.

Component Version macOS Windows Linux Server iOS SDK
SerialPort 7.0 ✅ Yes ✅ Yes ❌ No ✅ Yes, on macOS and Windows ❌ No
MBS( "SerialPort.HasLine"; PortReference )   More

Parameters

Parameter Description Example
PortReference The reference number of the port. You get this number from SerialPort.Open when you open the port. $port

Result

Returns 1, 0 or error.

Description

Checks if a line is available.
The plugin checks the input buffer for a newline character.

The script trigger pauses after it triggered a script and waits for you to call a function to read. This function clears the flag and allows the script trigger to fire again.

See also

Release notes

Blog Entries

This function is free to use.

Created 21st December 2016, last changed 30th January 2025


SerialPort.GetXON - SerialPort.IsSuspended