Bond and then automatically connect. Bond to multiple devices.

Hi!

I'm developing the software for a central and a peripheral that implement the Automation IO service, to control some GPIOs remotely. I'm using NCS v2.0.2

I need, once they are connected, they bond, central store the information of the bonding, and next time connect automatically. Could you please recommend me some examples or resources to do that?

I guess if I clean the memory of the central or the peripheral, and one side bond information is deleted, they can't connect again, because one side thinks the other side has the bond information, but it hasn't. Am I right? How could I delete the bond information, to do the bonding process again, in this case?

Another questions:

Is it possible for central to bond to multiple peripherals, and maintain the connection and communication with all of them? 

Is it possible for peripheral, once connected to a central, keep advertising to be able to connect to another central, and be connected to 2 centrals at same time?

Any examples?

Thanks and kind regards,

Pedro.

Related