Hello,
I have used two projects simple_peripheral and simple_central from BLE5-Stack (CC2640R2) and I have encountered an issue which I cannot understand.
When I set central's device IRK to custom IRK it stops receiving advertising from the peripheral device.
static uint8_t thisIrk[16] = {
0x0, 0x1, 0x2, 0x3, 0x4,
0x5, 0x6, 0x7, 0x8, 0x9,
0xa, 0xb, 0xc, 0xd, 0xe, 0xf
};
// Initialize this device's IRK and SRK
#if 1 // TODO: Why is this wrong? Central does not receive advertisements from peripheral
GapConfig_SetParameter(GAP_CONFIG_PARAM_IRK, &thisIrk[0]);
#endif
// Initialize GAP layer for Central role and register to receive GAP events
GAP_DeviceInit(GAP_PROFILE_CENTRAL, selfEntity, addrMode, NULL);
What is the reason of such central divice's behaviour?
Br,
Krzysztof