app_error_handler, L:188] error_code=0x3002
So how can I avoid this error?
I just want to disconnect from peripheral device
app_error_handler, L:188] error_code=0x3002
So how can I avoid this error?
I just want to disconnect from peripheral device
I have same problem: After sucessfully bonding with nRF51822, immediately on nRF side i call
sd_ble_gap_disconnect(m_conn_handle, BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION);
and function return NRF_ERROR_SOFTDEVICE_NOT_ENABLED.
What could it be?
And BLE_HCI_CONN_INTERVAL_UNACCEPTABLE) and BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION have same result
0x3002 is BLE_ERROR_INVALID_CONN_HANDLE.
As for my code, first init m_conn_handle was in device_manager_evt_handler DM_EVT_CONNECTION as:
m_conn_handle = p_event->event_param.p_gap_param->conn_handle;
but in next event DM_EVT_DEVICE_CONTEXT_STORED, p_event->event_param.p_gap_param->conn_handle stay another, and this another handler was a parameter in sd_ble_gap_disconnect.
I do not know, why conn_handler is changed, but when I remove this string from event DM_EVT_DEVICE_CONTEXT_STORED, function sd_ble_gap_disconnect return OK.