I'm working on blehid device. One feature that I am trying to implement is to be able to pair with a device a second time using a new mac address (not simultaneously connected twice, but to re-pair later with a different MAC). The mac address side of things is working fine, I can connect to the same device but the blehid service is not present. I've tried to google the issue and believe the problem lies in the fact that "the peer manager will reject pairing requests from an already bonded peer".
Now whilst I understand what this means by reading the post here:
https://devzone.nordicsemi.com/f/nordic ... first-time
I'm not sure where to implement this suggested fix:
I'm not sure if Adafruit has provided me with access to this "flag" or where to find it.static void pm_evt_handler(pm_evt_t const * p_evt)
{
case PM_EVT_CONN_SEC_CONFIG_REQ:
{
// Reject pairing request from an already bonded peer.
pm_conn_sec_config_t conn_sec_config = {.allow_repairing = true};
pm_conn_sec_config_reply(p_evt->conn_handle, &conn_sec_config);
} break;
Any help would be appreciated.