Skip to content

Conversation

@martinlukas84
Copy link
Contributor

Describe your changes

This PR publishes the response code via interface in Everest environment.
This is useful for process view or usage in other modules like API etc.

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I read the contribution documentation and made sure that my changes meet its requirements

… other modules like API etc. This is helpful for process view.

Signed-off-by: Martin Lukas <[email protected]>
…p this to string and publish the code via interface.

Signed-off-by: Martin Lukas <[email protected]>
@martinlukas84 martinlukas84 force-pushed the feature/ev_response_code branch from a53b483 to d86bd15 Compare January 21, 2026 08:22
@SebaLukas SebaLukas self-assigned this Jan 21, 2026
Copy link
Member

@SebaLukas SebaLukas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comments.

call_if_available(callbacks.ev_termination, ev_termination_code, ev_termination_explanation);
}

void Feedback::response_code(const iso15118::message_20::datatypes::ResponseCode& code) const {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit test(s) for response_code is/are missing

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit test is still missing

const auto res = handle_request(*req, m_ctx.session, false);

m_ctx.respond(res);
m_ctx.feedback.response_code(res.response_code);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it would be possible to call feedback.responce_code() not in every state. Maybe it is possible to call that function in the context respond function or in the Session::poll function

interface/iso15118_charger: change the ResponseCode entry to rely on iso15118 type

Signed-off-by: Martin Lukas <[email protected]>
ev_termination_explanation:
description: Contains the EV termination explanation
type: string
type: string No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add again EOF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants