![]() |
S145 SoftDevice for nRF54LV10 API documentation 10.0.0
|
| uint32_t sd_ble_gap_scan_start | ( | ble_gap_scan_params_t const * | p_scan_params, |
| ble_data_t const * | p_adv_report_buffer ) |
#include <ble_gap.h>
Start or continue scanning (GAP Discovery procedure, Observer Procedure).
| BLE_GAP_EVT_ADV_REPORT | An advertising or scan response packet has been received. |
| BLE_GAP_EVT_TIMEOUT | Scanner has timed out. |
| Scanning |
| Whitelist Sharing |
| [in] | p_scan_params | Pointer to scan parameters structure. When this function is used to continue scanning, this parameter must be NULL. |
| [in] | p_adv_report_buffer | Pointer to buffer used to store incoming advertising data. The memory pointed to should be kept alive until the scanning is stopped. See GAP Minimum scanner buffer size for minimum and maximum buffer size. If the scanner receives advertising data larger than can be stored in the buffer, a BLE_GAP_EVT_ADV_REPORT will be raised with ble_gap_adv_report_type_t::status set to BLE_GAP_ADV_DATA_STATUS_INCOMPLETE_TRUNCATED. |
| NRF_SUCCESS | Successfully initiated scanning procedure. |
| NRF_ERROR_INVALID_ADDR | Invalid pointer supplied. |
| NRF_ERROR_INVALID_STATE | Invalid state to perform operation. Either:
|
| NRF_ERROR_INVALID_PARAM | Invalid parameter(s) supplied. See ble_gap_scan_params_t. |
| NRF_ERROR_NOT_SUPPORTED | Unsupported parameters supplied. See ble_gap_scan_params_t. |
| NRF_ERROR_INVALID_LENGTH | The provided buffer length is invalid. See BLE_GAP_SCAN_BUFFER_MIN. |
| NRF_ERROR_RESOURCES | Not enough BLE role slots available. Stop one or more currently active roles (Central, Peripheral or Broadcaster) and try again |