cancel
Showing results for 
Search instead for 
Did you mean: 

hello, i paired and bonded my peripheral with my cellphone (Galaxy s8). I expect that after disconnecting, the cellphone can reconnect automatically to the peripheral as soon as it enters in its range, but this does not happen. Thanks

LMoio
Associate II

On my phone i'm using nRF Connect app. I can manually connect (and bond), disconnect and reconnect, but i'd want to reconnect automatically.

What i've done on my device:

/*Set capability*/
 ret = aci_gap_set_io_capability(IO_CAP_DISPLAY_ONLY);
 /* Set authentication requirement */
 ret = aci_gap_set_authentication_requirement(BONDING, MITM_PROTECTION_REQUIRED,SC_IS_NOT_SUPPORTED, //SC_IS_NOT_SUPPORTED 
KEYPRESS_IS_NOT_SUPPORTED, 0x07, 0x10,DONOT_USE_FIXED_PIN_FOR_PAIRING, //USE_FIXED_PIN_FOR_PAIRING
 123456,0x00);
/*Set the passkey */
void aci_gap_pass_key_req_event(uint16_t Connection_Handle)
{
 uint8_t ret;
 passKey = 123456;
 ret = aci_gap_pass_key_resp(Connection_Handle, passKey);
 if(ret != BLE_STATUS_SUCCESS)
 {
ret = ret;
 } 
}

2 REPLIES 2
alok
Senior

Looks like your question is a generic question and not specific to BLE-Mesh. Please confirm

LMoio
Associate II

Yes, you are right