Hello,
Is there any way to check if the bluetooth is connected after NVIC Reset?In our project when we get a specific command from the UART, NVIC reset is done.After the reset i want to check if our device (peripheral) is connected and if it is to disconnect it.I'm setting a flag on BLE_GAP_EVT_CONNECTED event, but after the reset the flag is 0.Also after NVIC reset i am getting error 2 when i call err_code = sd_ble_gap_disconnect(conn_handle, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION); APP_ERROR_CHECK(err_code);