TwclBluetoothRadio.CreateComPort(Int64,TGUID,Word) Method

Creates new virtual COM port.

Namespace: wclBluetooth
public
 function CreateComPort(const Address: Int64; const Service: TGUID;
 out Number: Word): Integer;

Parameters

Address
Type: Int64

Remote device address.

Service
Type: TGUID

A service's UUID.

Number
Type: Word

If function completed with success the Number parameter contains a just created virtual COM port number.

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.

A created vCOM is valid only while radio object is available.

The Service parameter can be Serial Port Profile or DialUp Networking Profile UUID.