nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ ble_scan_params_set()

uint32_t ble_scan_params_set ( struct ble_scan * scan,
const ble_gap_scan_params_t * scan_params )

#include <ble_scan.h>

Set the scanning parameters.

Use this function to change scanning parameters. During the parameter change the scan is stopped. To resume scanning, use ble_scan_start.

Parameters
[in,out]scanScan library instance.
[in]scan_paramsGAP scanning parameters. Can be initialized as NULL.
Return values
NRF_SUCCESSIf parameters are changed successfully.
NRF_ERROR_NULLIf a NULL pointer is passed as input.