Hello
I want to implement this thing http://e2e.ti.com/support/wireless_connectivity/f/538/t/158892.aspx
"With this update, it may be possible for you to implement functionality in the bond manager for the peripheral to behave in a way similar to a whitelist. Upon connection with a central device, you would need to resolve the peer device's address, and then if it does not match the device that you want to connect to, you would simply terminate the connection."
I need to receive message somehow that passcode was incorrect, in this situation I can terminate link. How I can check correction of passcode?
Configuration of bond manager:
/* Setup the GAP Bond Manager */ { uint32_t passkey = 240814; uint8_t pairMode = GAPBOND_PAIRING_MODE_WAIT_FOR_REQ; uint8_t ioCap = GAPBOND_IO_CAP_DISPLAY_ONLY; uint8_t bonding = true; uint8_t mitm = true; GAPBondMgr_SetParameter( GAPBOND_DEFAULT_PASSCODE, sizeof (uint32_t), &passkey ); GAPBondMgr_SetParameter( GAPBOND_PAIRING_MODE, sizeof(uint8_t), &pairMode ); GAPBondMgr_SetParameter( GAPBOND_MITM_PROTECTION, sizeof(uint8_t), &mitm ); GAPBondMgr_SetParameter( GAPBOND_IO_CAPABILITIES, sizeof(uint8_t), &ioCap ); GAPBondMgr_SetParameter( GAPBOND_BONDING_ENABLED, sizeof(uint8_t), &bonding ); }
I made a callbacks also passcodeCB and pairStateCB, but it's not helping much.
Thanks