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
Issue a connection parameter update request.
Note
This API shall only be called if local is LE peripheral role.
Events generated
BLE_L2CAP_EVT_CONN_PARA_UPDATE_RSP Generated when connection parameter update response received.
Parameters
Parameter | Description |
---|---|
[in] connHandle | Connection handle associated with this connection. |
[in] intervalMin | Minimum value for the connection interval. See Connection parameters range. |
[in] intervalMax | Maximum value for the connection interval. See Connection parameters range. |
[in] latency | Peripheral latency parameter. See Connection parameters range. |
[in] timeout | Connection timeout parameter. See Connection parameters range. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully send a L2cap connection parameters update request. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_NO_RESOURCE | No Transmit buffers available for sending L2cap connection parameters update request. |
MBA_RES_FAIL | Fail to send L2cap connection parameters update request by error L2cap instance. |