Tool/software: Code Composer Studio
Hi,
I'm Using CC2642r with Simple_peripheral project.
I'm trying to set GAPBondMgr in order to get passkey on BLE connection and encryption .
i'm using this code :
uint8_t pairMode = GAPBOND_PAIRING_MODE_INITIATE;
 uint8_t mitm = TRUE;
 uint8_t ioCap = GAPBOND_IO_CAP_DISPLAY_ONLY;
 uint8_t bonding = TRUE;
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);
instead of getting passkey to set i got "Authentication failed" .
if there something i need to in project environment in order to be able to use these BLE features ( defines , includes ... )?
Thanks
 
				 
		 
					 
                           
				 
				