TwclGattClientConnection.GetMaxPduSize(Word) Method

Reads the maximum PDU size for the current connection.

Namespace: wclBluetooth
public
 function GetMaxPduSize(out Size: Word): Integer;

Parameters

Size
Type: Word

If the method completed with success on output contains the maximum PDU size.

Return Value

Type: Integer

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