system.serial.closeSerialPort

Description

Closes a previously opened serial port. Returns without doing anything if the named serial port is not currently open. Will throw an exception if the port is open and cannot be closed.

Syntax

system.serial. closeSerialPort( port )

  • Parameters

String port - The name of the serial port, e.g., "COM1" or "dev/ttyS0".

  • Returns

Nothing

  • Scope

All

Code Examples

There are no examples associated with this scripting function.