I'm trying to distinguish disconnect reasons for debugging purposes. I've been able to glean that
- BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION means that my device initiated the disconnect
- BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION means that the peer initiated the disconnect
- BLE_HCI_CONNECTION_TIMEOUT means that the connection was lost due to the supervision timeout
BLE_HCI_STATUS_CODE_LMP_RESPONSE_TIMEOUT appears to also happen at times when I would expect BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION, but with a delay that is close to the supervision timeout. Does it mean that the connection was dropped due to the termination packet not being acknowledged before the supervision timeout?
I am using nRF52832 with SDK v14.2.