This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can't connect directly after I exit our app by back key on phone

Hi,

My behavior is as follows

  1. Turn on my device(use 51422) and advertising(2 Service and 3 Characteristic)
  2. Turn on my cell phone(Samsung Note3),scan my device and connect successfully
  3. Send data from my device to cell phone through sd_ble_gatts_hvx()
  4. In the process of transmission,click back key on cell phone,My app will exit and device will get disconnect event
  5. Then scan device again, I can find same device and nRF master control will show "connected" but can't discover any service (Has been going round in circles)
  6. I click back key to exit App and my device get disconnect event again
  7. Then I scan my device. This time I will find my device and connect successfully (Discover service OK)

I always connect successfully by disconnect twice, why? If I click back key to exit App while no data transmission, does not have this problem.

Thank you.

Related