Re-pairing process for NCS

SDK: NCS 1.9.0

Hardware(peripheral): nRF52832

Central: iPhone(iOS)

IDE: SES

Hi,

I am trying to configure our project to accept re-pairings from the central but I am running into some authentication errors.

This is the flow that we want:

1. Central and peripheral connect and bond(LESC, no authentication) for the first time.

2. Central disconnects and forgets device from settings.

3. Central and peripheral re-connect and the central sends a pairing request and a new bond is created since the central has forgotten the old data.

However, when we attempt to replicate this, the peripheral returns the following error BT_SECURITY_ERR_AUTH_REQUIREMENT. I know previously in the nRF5 SDK there was a setting that had to be configured to allow re-pairings. Is there a similar setting or define in the proj.config file that needs to be set for this to be possible?

Thank you,

Tom

Related