This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Why am I getting INVALID_PARAM from sd_ble_gap_scan_start()?

I am trying to start scanning for devices. I have changed from the example (ble_app_mulitlink_central_s130_pca10028) only

  • clock source to NRF_CLOCK_LFCLKSRC_SYNTH_250_PPM
  • instead of nRF51422 I have nRF51822 linked through Debug in ports to PCA10028
  • CENTRAL_LINK_COUNT to 1, instead of 8.

I am trying to use SCAN_INTERVAL and SCAN_WINDOW values default from example. My m_scan_param:

static const ble_gap_scan_params_t m_scan_param =
{
     0,                       
     0,                       
     NULL,                    
     (uint16_t)SCAN_INTERVAL, 
     (uint16_t)SCAN_WINDOW,   
     0                        
};

define SCAN_INTERVAL                    0x00A0

define SCAN_WINDOW                     0x0050  
Parents Reply Children
No Data
Related