/* Command response callback function for sd_ble_opt_get BLE command. 
Callback for decoding the output parameters and the command response return code. */
static uint32_t opt_get_rsp_dec(const uint8_t *p_buffer, uint16_t length)
/* Command response callback function for sd_ble_opt_get BLE command. 
Callback for decoding the output parameters and the command response return code. */
static uint32_t opt_get_rsp_dec(const uint8_t *p_buffer, uint16_t length)
{
    uint32_t result_code;
    uint32_t uint32_param;
    uint32_t err_code = ble_opt_get_rsp_dec(p_buffer,
                                            length,
                                            &uint32_param,
                                            (ble_opt_t *)mp_out_params[0],
                                            &result_code);
    APP_ERROR_CHECK(err_code);
    if (m_uint32_param != uint32_param)
    {
      err_code = NRF_ERROR_INVALID_PARAM;
    }
    APP_ERROR_CHECK(err_code);
    return result_code;
}