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)
Note: Value 1 (bthpL2CAP) is not currently supported and reserved for future use.
Data Type
Integer