IPWorks Bluetooth 2020 C++ Edition

Questions / Feedback?

Protocol Property

The Bluetooth protocol to be used.

Syntax

ANSI (Cross Platform)
int GetProtocol();
int SetProtocol(int iProtocol); Unicode (Windows) INT GetProtocol();
INT SetProtocol(INT iProtocol);

Possible Values

BTP_RFCOMM(0), 
BTP_L2CAP(1)
#define PID_BTPORT_PROTOCOL 8

IPWORKSBT_EXTERNAL void* IPWORKSBT_CALL IPWorksBT_BTPort_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSBT_EXTERNAL int IPWORKSBT_CALL IPWorksBT_BTPort_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

0

Remarks

The Protocol property specifies whether RFCOMM or L2CAP is used. Possible values are:

  • 0 (bthpRFCOMM - default)
  • 1 (bthpL2CAP)
The default value is 0 (bthpRFCOMM).

Note: Value 1 (bthpL2CAP) is not currently supported and reserved for future use.

Data Type

Integer

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks Bluetooth 2020 C++ Edition - Version 20.0 [Build 7941]