2020-08-17 03:51 PM
Using the SDK's BLE_Privacy project as a base, I changed the Master & Slave programs to function with the static random address stored in NVM by commenting out the aci_hal_write_config_data function that was setting a public address and changing the address type to a Resolvable Private Address (0x02) in the following functions:
This functioned as expected with no issues.
I then attempted to set a static random address and not use the one in NVM by using the aci_hal_write_config_data with the offset set to CONFIG_DATA_STATIC_RANDOM_ADDRESS on both the master & slave in-place of where the CONFIG_DATA_PUBADDR_OFFSET write was occurring. The devices were unable to reconnect using the whitelist after the initial connection, pairing, bonding, & disconnect. I verified the bonded addresses of the master & slave matched the associated configured static random address of the slave & master respectively, and the address stored and then entered into the resolving list & whitelist.
The following sequence would occur following initial connection, pairing, bonding, & disconnection.
Any solution for this or something I am overlooking?