After modifying the ancs example to remove the data and control points, the event_connect() subfunction in ble_ancs_c.c gets called immediatly upon a connection to a master. This happens before p_ancs->master_handle ever gets updated from invalid. As such the code never recognizes that the connected device is from the stored bonding info.
I would like to update the master handle so that the event_connect subfunction checks the current connection handle against stored master handles and updates the master handle before continuing. A am planning on adding subfunctions to the ble_bondmngr.c to return all stored handles to check if it is a previously connected master.
Does this make sense? Or should I avoid messing with the library files?