This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

NRF_ERROR_INVALID_STATE in conn_params_error_handler.

Hello.

I am using nrf52832 (s132 v7.0.1, SDK v17.0.0) as a peripheral and developing.

I am using nRF Connect to communicate with the peripheral nRF52832.

One of the processes is to disconnect if the security parameters do not match. This disconnection process causes an error in "conn_params_error_handler".

static void conn_params_error_handler(uint32_t nrf_error)
{
    APP_ERROR_HANDLER(nrf_error);

    return;
}

00> <info> app: Connected, handle 0x0.
00> <info> app: BLE_GAP_EVT_SEC_PARAMS_REQUEST.
00> <error> app: ERROR 8 [NRF_ERROR_INVALID_STATE]

I do not understand why this error occurs.

Therefore, I was looking for a way to deal with it in DevZone, and the answer I got was "you can ignore it".

https://devzone.nordicsemi.com/f/nordic-q-a/44462/getting-the-error-nrf_error_invalid_state-from-function-conn_params_error_handler


In case of NRF_ERROR_INVALID_STATE, is it OK to avoid entering "APP_ERROR_HANDLER"?

Please help me to solve this problem.

Best regards.

Related