system.serial. configureSerialPort(port, [bitRate], [dataBits], [handshake], [hardwareFlowControl], [parity], [stopBits])
String port - The name of the serial port (e.g., "COM1" or "/dev/ttyS0"). This parameter is required.
Integer bitRate Configure the bit rate. Valid values are defined by the following constants [optional]:
system.serial.BIT_RATE_110, system.serial.BIT_RATE_150, system.serial.BIT_RATE_300, system.serial.BIT_RATE_600, system.serial.BIT_RATE_1200, system.serial.BIT_RATE_2400, system.serial.BIT_RATE_4800, system.serial.BIT_RATE_9600, system.serial.BIT_RATE_19200, system.serial.BIT_RATE_38400, system.serial.BIT_RATE_57600, system.serial.BIT_RATE_115200, system.serial.BIT_RATE_230400, system.serial.BIT_RATE_460800, system.serial.BIT_RATE_921600
Integer dataBits - Configure the data bits. Valid values are defined by the following constants [optional]:
system.serial.DATA_BITS_5, system.serial.DATA_BITS_6, system.serial.DATA_BITS_7, system.serial.DATA_BITS_8
Integer handshake - Configure the handshake. Valid values are defined by the following constants [optional]:
system.serial.HANDSHAKE_CTS_DTR, system.serial.HANDSHAKE_CTS_RTS, system.serial.HANDSHAKE_DSR_DTR, system.serial.HANDSHAKE_HARD_IN, system.serial.HANDSHAKE_HARD_OUT, system.serial.HANDSHAKE_NONE, system.serial.HANDSHAKE_SOFT_IN, system.serial.HANDSHAKE_SOFT_OUT, system.serial.HANDSHAKE_SPLIT_MASK, system.serial.HANDSHAKE_XON_XOFF
Boolean hardwareFlowControl - Configure hardware flow control. On or off. [optional]
Integer parity - Configure parity. Valid values are defined by the following constants [optional]:
system.serial.PARITY_EVEN, system.serial.PARITY_ODD, system.serial.PARITY_MARK, system.serial.PARITY_SPACE, system.serial.PARITY_NONE
Integer stopBits - Configure stop bits. Valid values are defined by the following constants [optional]:
system.serial.STOP_BITS_1, system.serial.STOP_BITS_2
SerialConfigurator - A SerialConfigurator object with exposed functions that can be used to configure the serial port instead of, or in addition to, the arguments passed to configureSerialPort.
Gateway, Vision Client, Perspective Session