cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure IRK for X-NUCLEO-BNRG2A1 mounted on NUCLEO-STM32L496

adityarajchauhan051
Associate II

Hi, I am using X-NUCLEO-BNRG2A1 mounted on NUCLEO-STM32L496. I want to implement security so I am using IRK for my ble Mac address after that no one can trace my mac address. i am new here and I used the irk flag and command like :

/* Configure read root key IR on BlueNRG, BlueNRG-MS device */

ret = aci_hal_write_config_data(CONFIG_DATA_IR_OFFSET,CONFIG_DATA_IR_LEN,(uint8_t *) IR);

and also

ret = aci_gap_set_discoverable(ADV_DATA_TYPE, ADV_INTERV_MIN, ADV_INTERV_MAX, RESOLVABLE_PRIVATE_ADDR, NO_WHITE_LIST_USE , sizeof(local_name), local_name, 0, NULL, 0,0); // Set the device to be discoverable

if(ret != BLE_STATUS_SUCCESS) // Check if the ret was succesful

{

printf("aci_gap_set_discoverable : FAILED!! \n\r");

}

 

0 REPLIES 0