Hello,
SDK: CC13x2 26x2 SDK - 5.20.00.52
Example: Stack_Wrapper
My Question is about the auto sync feature of the GAPBondmgr fot the Host_Test example. In the Stack_Wrapper example there is the "static void gapBondMgr_SyncWhiteList(void)" (in gapbondmgr.c) which provides this feature.
Is there a reason why the LE add device to whitelist function "VOID MAP_HCI_LE_AddWhiteListCmd(HCI_PUBLIC_DEVICE_ADDRESS, bonds[i].addr);" uses public address typ only?
The structure of the NV data "gapBondRec_t" could provide the address typ. So I could use "VOID MAP_HCI_LE_AddWhiteListCmd(bonds[i].addrType, bonds[i].addr);" instead.
static void gapBondMgr_SyncWhiteList(void) { uint8_t i; //erase the White List VOID MAP_HCI_LE_ClearWhiteListCmd(); // Write bond addresses into the White List for(i = 0; i < gapBond_maxBonds; i++) { // Make sure empty addresses are not added to the White List if(osal_isbufset(bonds[i].addr, 0xFF, B_ADDR_LEN) == FALSE) { VOID MAP_HCI_LE_AddWhiteListCmd(HCI_PUBLIC_DEVICE_ADDRESS, bonds[i].addr); } } }
Best regards,
Samuel