BLE_L2CAP_ConnParamUpdateReq

C

uint16_t BLE_L2CAP_ConnParamUpdateReq(uint16_t connHandle, uint16_t intervalMin, uint16_t intervalMax, uint16_t latency, uint16_t timeout);

Description

Issues a connection parameter update request.

Note

This API should only be called when the local device is in the LE peripheral role.

Events generated

BLE_L2CAP_EVT_CONN_PARA_UPD_RSP is generated when a connection parameter update response is received.

Parameters

ParameterDescription
[in] connHandleConnection handle associated with this connection.
[in] intervalMinThe minimum value for the connection interval. Refer to Connection parameters range for valid ranges.
[in] intervalMaxThe maximum value for the connection interval. Refer to Connection parameters range for valid ranges.
[in] latencyThe peripheral latency parameter. Refer to Connection parameters range for valid ranges.
[in] timeoutThe connection timeout parameter. Refer to Connection parameters range for valid ranges.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully sent a connection parameters update request.
MBA_RES_OOMInternal memory allocation failure occurred.
MBA_RES_NO_RESOURCENo transmit buffers available for sending L2CAP connection parameters update request.
MBA_RES_FAILFailed to send the request due to an L2CAP instance error.