TwclBluetoothRadio.EnumPairedDevices(TwclBluetoothDiscoverKind,TwclBluetoothAddresses) Method

The method enumerates already paired devices.

Namespace: wclBluetooth
public
 function EnumPairedDevices(const Kind: TwclBluetoothDiscoverKind;
 out Devices: TwclBluetoothAddresses): Integer; overload;

Parameters

Kind
Type: TwclBluetoothDiscoverKind

Enumeration method: LE or Classic.

Devices
Type: TwclBluetoothAddresses

On output the dynamic array will be filled with pared devices MACs. A caller is responsible to free the memory allocated (if was) for this parameter.

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.