Bluetooth Framework
ContentsIndexHome
PreviousUpNext
CwclBluetoothRadio::CreateComPort Method

Creates new virtual COM port.

Syntax
C++
int CreateComPort(__int64 Address, GUID Service, unsigned short& Number);
Parameters 
Description 
__int64 Address 
Remote device address.  
GUID Service 
A service's UUID.  
unsigned short& Number 
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.