Skip to main content
LMoio
Associate
Feb 28, 2019 10:43 AM UTC
Question

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

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;
 } 
}

This topic has been closed for replies.

2 replies

alok
Visitor II
Mar 1, 2019 10:13 AM UTC

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

LMoio
LMoioAuthor
Associate
Mar 1, 2019 11:48 AM UTC

Yes, you are right