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

nrf51-ble-driver_win_0.5.0 scanning with white list does not work

I'm creating a PC application using the ble windows driver by nordic, i cannot implement white list. I ported my code on the firmware & it works. Is this a limitation of the driver or the firmware connectivity_115k_with_s130_1.0.0.hex? Below is my code:

   ble_gap_scan_params_t m_scanparam_sel;
   ble_gap_whitelist_t mywhitelist;
   ble_gap_addr_t      *p_whitelist_addr[1];
   //address LSB first
   ble_gap_addr_t whitelist_addr = {BLE_GAP_ADDR_TYPE_RANDOM_STATIC,    {0x25,0xD7,0x90,0x11,0x7A,0xC8}};

   
   memset(&m_scanparam_sel,0,sizeof(m_scanparam_sel));
   p_whitelist_addr[0] = &whitelist_addr;

   mywhitelist.irk_count =    0;
   mywhitelist.pp_irks = NULL;
   mywhitelist.pp_addrs = p_whitelist_addr;
   mywhitelist.addr_count = 1;


   //set scanning parameter
   m_scanparam_sel.active = 1;
   m_scanparam_sel.selective =1;
   m_scanparam_sel.p_whitelist = &mywhitelist; 
   m_scanparam_sel.interval= SCAN_INTERVAL;
   m_scanparam_sel.window = SCAN_WINDOW;
   m_scanparam_sel.timeout= 0 ;      

   scan_start(m_scanparam_sel);
Parents Reply Children
No Data
Related