Hi, I would like to know how I can immediately detect when a connection link is loss either from the central or peripheral. I need to know which error or notification to look out for when a data exchange fails due to link loss. Thanks in advance.
Hi, I would like to know how I can immediately detect when a connection link is loss either from the central or peripheral. I need to know which error or notification to look out for when a data exchange fails due to link loss. Thanks in advance.
When you have link loss you will get the BLE_GAP_EVT_DISCONNECTED event from the SoftDevice. It will contain a reason for disconnection. For link loss this reason will be 0x08, which corresponds to BLE_HCI_CONNECTION_TIMEOUT.