Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  

SerialPort.ReadLine

Reads a line of text from serial port.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
SerialPort 7.0 Yes Yes Yes No No

MBS( "SerialPort.ReadLine"; PortReference { ; Encoding } )

Parameters

Parameter Description Example value
PortReference The reference number of the port. You get this number from SerialPort.Open when you open the port. $port
Encoding Optional
The text encoding for result.
Default is native.
This function can also handle UTF-16 as well as UTF-16LE and UTF-16BE for little/big endian byte order.
Pass hex or base64 to get text back encoded.
UTF8

Result

Returns text or error.

Description

Reads a line of text from serial port.
The plugin buffers input and reads text until first newline character. Returns text without that newline character.

See also

Created 21st December 2016, last changed 21st December 2016


SerialPort.ReadHex   -   SerialPort.Resume

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins