IsSerialPort()

语法

Result = IsSerialPort(#SerialPort)
概要
Tests if the given serial port is valid and correctly initialized.

参数

#SerialPort The serial port to test.

返回值

Nonzero if the serial port is valid, zero otherwise.

Remarks

This function is bulletproof and may be used with any value. This is the correct way to ensure a serial port is ready to use.

参阅

OpenSerialPort()

已支持操作系统

所有

<- GetSerialPortStatus() - SerialPort Index - OpenSerialPort() ->