BLE_L2CAP_CbConnReq
C
uint16_t BLE_L2CAP_CbConnReq(uint16_t connHandle, uint16_t spsm);Description
Issue a L2cap credit based connection request to establish a L2cap channel.
Note
BLE_L2CAP_CbRegisterSpsm must be called to register SPSM before calling this API.
Events generated
BLE_L2CAP_EVT_CB_CONN_IND Generated when a credit based connection is established successfully.
BLE_L2CAP_EVT_CB_CONN_FAIL_IND Generated when a credit based connection is established failure.
Parameters
| Parameter | Description | 
|---|---|
| [in] connHandle | Connection handle associated with this connection. | 
| [in] spsm | SPSM. See the valid range SPSM range. | 
Return values
| Return value | Description | 
|---|---|
| MBA_RES_SUCCESS | Successfully issue a connection request. | 
| MBA_RES_OOM | Internal memory allocation failure. | 
| MBA_RES_NO_RESOURCE | No Transmit buffers available for sending connection request. | 
