Bluetooth Framework C++ Edition

◆ GetMaxPduSize()

int GetMaxPduSize ( unsigned short &  Size)

Reads the maximum PDU size for the current connection.

Parameters
SizeIf the method completed with success on output contains the maximum PDU size.
Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

The PDU size includes header and payload. For example if PDU size is 23 bytes the allowed payload is 20 bytes.