TwclBluetoothRadio.HalCreateConnection(TwclBluetoothConnectionType,TwclCustomConnection) Method

Creates a hardware-dependent connection object based on connection type.

Namespace: wclBluetooth
protected
 function HalCreateConnection(
 const ConnectionType: TwclBluetoothConnectionType;
 out Connection: TwclCustomConnection): Integer; virtual; abstract;

Parameters

ConnectionType
Type: TwclBluetoothConnectionType

A type of the required connection object.

Connection
Type: TwclCustomConnection

If the function completed with success on output contains the connection object.

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.