Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

SerialPort.SetStopBits

Sets number of stop bits.

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

MBS( "SerialPort.SetStopBits"; PortReference; Value )

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
Value The new setting. 2

Result

Returns OK or error.

Description

Sets number of stop bits.
Can be 1 or 2 on Mac and 1, 1.5 or 2 on Windows.

Examples

Set stop bits to be 1:

MBS("SerialPort.SetStopBits"; $SerialPort; 1)

Set stop bits to be 2:

MBS("SerialPort.SetStopBits"; $SerialPort; 2)

See also


SerialPort.SetRTS   -   SerialPort.SetXON

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins