![]() |
S145 SoftDevice for nRF54LS05 API documentation 10.0.0
|
| uint32_t sd_ble_gap_connect | ( | ble_gap_addr_t const * | p_peer_addr, |
| ble_gap_scan_params_t const * | p_scan_params, | ||
| ble_gap_conn_params_t const * | p_conn_params, | ||
| uint8_t | conn_cfg_tag ) |
#include <ble_gap.h>
Create a connection (GAP Link Establishment).
| BLE_GAP_EVT_CONNECTED | A connection was established. |
| BLE_GAP_EVT_TIMEOUT | Failed to establish a connection. |
| Whitelist Sharing |
| Central Connection Establishment with Private Peer |
| Central Connection Establishment and Termination |
| [in] | p_peer_addr | Pointer to peer identity address. If ble_gap_scan_params_t::filter_policy is set to use whitelist, then p_peer_addr is ignored. |
| [in] | p_scan_params | Pointer to scan parameters structure. |
| [in] | p_conn_params | Pointer to desired connection parameters. |
| [in] | conn_cfg_tag | Tag identifying a configuration set by sd_ble_cfg_set or BLE_CONN_CFG_TAG_DEFAULT to use the default connection configuration. |
| NRF_SUCCESS | Successfully initiated connection procedure. |
| NRF_ERROR_INVALID_ADDR | Invalid parameter(s) pointer supplied. |
| NRF_ERROR_INVALID_PARAM | Invalid parameter(s) supplied.
|
| NRF_ERROR_NOT_FOUND | conn_cfg_tag not found. |
| NRF_ERROR_INVALID_STATE | The SoftDevice is in an invalid state to perform this operation.
|
| BLE_ERROR_GAP_INVALID_BLE_ADDR | Invalid Peer address. |
| NRF_ERROR_CONN_COUNT | The limit of available connections for this connection configuration tag has been reached. To increase the number of available connections, use sd_ble_cfg_set with BLE_GAP_CFG_ROLE_COUNT or BLE_CONN_CFG_GAP. |
| NRF_ERROR_RESOURCES | Either:
|
| NRF_ERROR_NOT_SUPPORTED | Unsupported PHYs supplied to the call. |