Part Number: CC2541
Hello,
In my system(peripheral), I want to allow connection only for those devices which is bonded during the first 5 minutes and disallow new devices from then on.
Inside 5 minutes timer I all this:
uint8 adv_filter= GAP_FILTER_POLICY_WHITE_CON; GAPRole_SetParameter( GAPROLE_ADV_FILTER_POLICY, sizeof( uint8 ), &adv_filter); uint8 WhiteList= TRUE; GAPBondMgr_SetParameter( GAPBOND_AUTO_SYNC_WL, sizeof( uint8 ), &WhiteList );
But now what is happening is it wont allow even bonded devices to connect after 5 minutes. I thought GAPBondMgr_SetParameter( GAPBOND_AUTO_SYNC_WL, sizeof( uint8 ), &WhiteList ); will add the bonded entries (its public address) to the whitelist. But this has no effect in my code. Is this the right way to add bonded device addresses to the whitelist?
Best,
Varun