device.exists

device.exists

device.exists

Function

Determine whether the specified serial port exists in the system.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
portStringNoNoneSerial port name.

Return value

TypeDescription
BoolReturns true if it exists; returns false if it is not passed or does not exist.

Example

Notes

  • exists will perform a serial port scan.