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

Cannot disconnect ANCS while quit from App

Dears, I am developing a ANCS application with nus service on our product. There are a few problems I don't know how to fix it. My problem is that : 1. ANCS will not disconnect with iPhone, while App closed. And reopen the App, the App cannot discover our device. (ANCS connected with iPhone all the time) I try to use the function "sd_ble_gap_disconnect" to break the connection of ANCS. But event will not get a event message when App closed. 2. System will reboot, while refuse to ANCS paring. I cannot find where it caused. I have checked in App_error~.c and try to print out a uart message. There is no message when reboot.

I know a smart phone would re-connect the device, when the connection broke unexpected. Have any way to break the ANCS connection, and stop it to advertise, but nus service is still alive?
Related