Hi, i got a random disconnect and cant find the cause. I found this post devzone.nordicsemi.com/.../ and tried to folow the procedure.
I have set up breakpoints wherever sd_ble_gap_disconnect()
is called.
on_conn_params_evt()
line183
:on_ble_evt()
line302
caseBLE_GATTC_EVT_TIMEOUT
on_ble_evt()
line310
caseBLE_GATTS_EVT_TIMEOUT
bsp_event_handler()
line431
caseBSP_EVENT_DISCONNECT
but none of this are trigered.
But when i put a breakpoint
on_ble_evt()
line282
caseBLE_GAP_EVT_DISCONNECTED
and look for a p_ble_evt->evt.gap_evt.params.disconnected.reason
i got BLE_HCI_CONNECTION_TIMEOUT (0x08)
.
I can't find what made the disconnect and where it came from. What should i do?