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
| Parameter | Description |
|---|---|
| [in] connHandle | Connection handle associated with this connection. |
| [in] intervalMin | The minimum value for the connection interval. Refer to Connection parameters range. |
| [in] intervalMax | The maximum value for the connection interval. Refer to Connection parameters range. |
| [in] latency | The peripheral latency parameter. Refer to Connection parameters range. |
| [in] timeout | The connection timeout parameter. Refer to Connection parameters range. |
Return values
| Return value | Description |
|---|---|
| MBA_RES_SUCCESS | Successfully sent a connection parameters update request. |
| MBA_RES_OOM | Internal memory allocation failure occurred. |
| MBA_RES_NO_RESOURCE | No transmit buffers available for sending L2CAP connection parameters update request. |
| MBA_RES_FAIL | Failed to send the request due to an L2CAP instance error. |
