I'm trying to change the mac address of my nRF51822 chip using something like:
ble_gap_addr_t m_address_1;
m_address_1.addr_type = BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE;
m_address_1.addr ...
m_address_1.addr[5] = 8;
sd_ble_gap_address_set(BLE_GAP_ADDR_CYCLE_MODE_NONE, &m_address);
I'm trying to switch between m_address_1
and m_address_2
every 500ms. It seems to work if the rate I switch is more than 1 second, but at 500ms, the address does not change fast enough and the advertisements packets get sent out at incorrect addresses.
Is there anyway to make this address change instantly for the next advertisement packet?