TwclIrDAReceiver.Discover(TwclIrDADevices) Method

Discovers nearby IrDA devices.

Namespace: wclIrDADevices
public
 function Discover(out Devices: TwclIrDADevices): Integer;

Parameters

Devices
Type: TwclIrDADevices

The array of found IrDA devices.

An application is responsible to release the memory allocated for the Devices dynamic array.

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.

The method executes discovering on all connected IrDA adapters.

Even if method succeed the Devices parameter can be set to nil if no one IrDA device was found. An application must always check the returned valud of the Devices parameter.

This method can be called from separate thread.