2019-02-28 2:43 AM
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;
 } 
}
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		2019-03-01 2:13 AM
Looks like your question is a generic question and not specific to BLE-Mesh. Please confirm
2019-03-01 3:48 AM
Yes, you are right