TwclSerialMonitor.EnumDevices(TwclSerialDevices) Method

Enumerates available serial devices.

Namespace: wclSerialDevices
public
 function EnumDevices(out Devices: TwclSerialDevices): Integer;

Parameters

Devices
Type: TwclSerialDevices

On output contains array of found serial devices.

Return Value

Type: Integer

If the function succeed the return value is wclErrors.WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

Even if the method completed with success the Devices parameter can be nil or empty if no one serial device was found.