This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF_ERROR_INVALID_STATE

We are using SoftDevice: sd132 v 5.0.

With event "BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST", the function "sd_ble_gatts_exchange_mtu_reply" always return with "NRF_ERROR_INVALID_STATE": anyone having any idea of why is this happening?

Thanks in advance!

Parents Reply
  • First parameter is 'p_ble_evt->evt.gatts_evt.conn_handle' and there is no other places to call this function.

    We changed the 'ble-connection-tag' (from 1 to 0) and now it replies NRF_ERROR_INVALID_PARAM.

    The only way to get NRF_SUCCESS is when we used the default value (23) for the second parameter is 23 (even changing the NRF_SDH_BLE_GATT_MAX_MTU_SIZE to 247)

Children
No Data
Related