Automatic reconnect from central to peripheral (nRF5340 DK) when accidental disconnect

I want to automatically reconnect to my peripheral (nrf5340 DK) from my central (phone) when there is an accidental disconnect (out of range) which I am simulating by resetting the DK. Is this something I need to code at the central or a capability which exists in the BLE stack?

  • Hello,

    I guess it depends a bit on both, but first make sure the peripheral will advertise again upon link loss. If that is the case, then it's fully controlled by the central device yes whether it will connect again. Be aware that the central device will wait until supervisor timeout occurs before it presume the link is loss.

    Kenneth

Related