ble_app_uart_c example sd_ble_gap_disconnec function failure

Hi, I am running ble_app_uart_c example with a PCA10056 DK board. I modified the example to accept command from uart. Everything look OK. But when I tried to command the host to disconnect from peripheral by the following code:

err_code = sd_ble_gap_disconnect(conn_handle,
BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
iAPP_ERROR_CHECK(err_code);

I got the following error:

<error> nrf_ble_gq: SD GATT procedure (1) failed on connection handle 0 with error: 0x00000008.
<error> app: Fatal error

Then the device got reset.

Any idea how to fix the issue? Thanks.

Parents Reply Children
No Data
Related