Is it possible to bond with multiple devices with nrf8001? If it is possible, could you add some examples about it
Is it possible to bond with multiple devices with nrf8001? If it is possible, could you add some examples about it
Yes, you can read out and store the bond information, but you cannot enable several connections at the exact same time. So you can store and load bond information sequentially. You can use the bond_data_restore to "import" different bonds. Please have a look in the nRF8001 SDK: github.com/.../ble-sdk-arduino
Does this mean that:
a) If you are bonded to multiple devices, you can practically be bonded just to one device (nrf8001 would store here just one bond)? Like you have to restore bond information after disconnection using bond_data_restore when you notice that disconnection happened because of lost bond information. This won't work in practise. Other end will delete bond information after it has noticed that bond is lost.
b) You can be connected just to one device and you can store multiple bonds in nrf8001.
Based on your nRF8001 SDK, it seems that you can have at least 2 simultaneous bonds with nrf8001. How many bonds it is possible to store?
You can be connected to just one at the time, but you can read out and store various bond information and put this back into the nRF8001 and hence be bonded to several units, but not at the same time. You have to shuffle through the various bonds one at the time.
And this basically means that you have to reconnect to nrf8001 if it does not have correct bonding information at the time of connection establishment? Or can you restore bonding information so that reconnection is not needed?