Bluetooth Framework
ContentsIndexHome
PreviousUpNext
TwclBluetoothRadio.CreateComPort Method

Creates new virtual COM port.

Syntax
Pascal
function CreateComPort(const Address: Int64; const Service: TGUID; out Number: Word): Integer;
Parameters 
Description 
const Address: Int64 
Remote device address.  
const Service: TGUID 
A service's UUID.  
out Number: Word 
If function completed with success the Number parameter contains a just created virtual COM port number.  

If the function succeed the return value is 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.  

 

Copyright (c) 2006-2019. All rights reserved.