nRF5340 - peripheral disconnection because out of range

Hi,
I'm working on nRF5340 Bluetooth LE peripheral (building environment: NCS 2.6.1, Zephyr 3.5.99).
The net core is populated with the Zephyr HCI RPMsg sample LE Controller as it is.
I experience a disconnection from peer with reason BT_HCI_ERR_CONN_TIMEOUT.
This occurs because the peer is moved out of range.

How to get the application notified in advance of this disconnection event ? 

Parents Reply
  • Gabriele said:
    I think that advertising should restart before the central peer could re-connect

    Yes, that's correct, but it seems like your application tries sending data instead of starting advertising. After a disconnect occurs I recommend you add a function that starts advertising again and quit the transmissions of data that should be done in a connection.

    Best regards,

    Simon

Children
Related