wclGattClientConnectionGetMaxPduSize Method |
Reads the maximum PDU size for the current
connection.
Namespace: wclBluetoothAssembly: wclBluetoothFramework (in wclBluetoothFramework.dll) Version: 7.17.12.0 (7.17.12.0)
Syntax public int GetMaxPduSize(
out ushort Size
)
Public Function GetMaxPduSize (
<OutAttribute> ByRef Size As UShort
) As Integer
public:
int GetMaxPduSize(
[OutAttribute] unsigned short% Size
)
Parameters
- Size UInt16
- If the method completed with success on output
contains the maximum PDU size.
Return Value
Int32 If the function succeed the return value is
WCL_E_SUCCESS. Otherwise the method returns one of
the WCL error codes.
Remarks The PDU size includes header and payload. For example if
PDU size is 23 bytes the allowed payload is 20 bytes.
See Also