Good day,
We have a requirement for our medical device to detect disconnection of the Bluetooth link in a very timely and consistent manner.
We have an application layer supervisor to check the connection status by checking the last time a valid application layer packet was received.
We would like to be able to rely on the GATT disconnection event as a backup means of detecting a disconnection as it is critical for the safety of the patient.
Disconnection generates a BLE_GAP_EVT_DISCONNECTED event and gap_evt.params.disconnected.reason is set to 0x08.
We would like to be able to set the exact time that the SoftDevice (S140) will need before it generates a disconnect event.
We have tried setting