-
Notifications
You must be signed in to change notification settings - Fork 127
Feature/ev response code #1765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Feature/ev response code #1765
Conversation
… 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]>
a53b483 to
d86bd15
Compare
SebaLukas
left a comment
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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]>
…ic types Signed-off-by: Martin Lukas <[email protected]>
…118_charger.yaml file 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add again EOF
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