cancel
Showing results for 
Search instead for 
Did you mean: 

how to configure api aci_gap_start_selective_connection_establish_proc()

avinpat_8
Associate

i am using st 232 evk bluenrg and serial_port_master_slave  sdk

1. how to use this api and set the arguments i tries to filter some devices but unable to do so after setting the parameters the callback event ie hci_le_advertising_report_event dosent called these are things i have set

 1.
/* Selective scanning api arguments */
#define Scan_Type  0x00
#define Scan_Interval 0x659   
#define Scan_Window  0x659  
#define AddressType 0x02
#define Filter_Policy 0x01
#define Duplicates 0x01
#define Whitelist_Entries 0x01
#define MAC_SIZE 0x06 
#define DELAY_CNT_INTERVAL 5
 
uint8_t PeerAddr[6] = {0x83,0xef,0xd3,0x40,0xa1,0xf5};
Whitelist_Entry_t Whitelist_Entry[1];
Whitelist_Entry[0].Peer_Address_Type = 0x00;
Osal_MemCpy((void *) &Whitelist_Entry[1].Peer_Address, (const void *) &PeerAddr, 6);
 
ret = aci_gap_start_selective_connection_establish_proc(Scan_Type,Scan_Interval,Scan_Window,AddressType,Filter_Policy,Duplicates,Whitelist_Entries,Whitelist_Entry );
 
 2.  /* Controller Privacy module: ENABLED */
#define CONTROLLER_PRIVACY_ENABLED               (1U)
 
3.
 
  /* GAP Init */
  ret = aci_gap_init(GAP_CENTRAL_ROLE, 0x01,0x07, &service_handle, 
                     &dev_name_char_handle, &appearance_char_handle);
0 REPLIES 0