Skip to content
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

OCPP201: Add trigger_reason argument #787

Merged
merged 3 commits into from
Jul 23, 2024

Conversation

Pietfried
Copy link
Contributor

@Pietfried Pietfried commented Jul 17, 2024

Describe your changes

Added trigger_reason to on_transaction_finished since libocpp API is updated. Moved conversion from stop_reason to trigger_reason from libocpp to OCPP201 module

Issue ticket number and link

Companion PR in libocpp: EVerest/libocpp#698

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

…updated. Moved conversion from stop_reason to trigger_reason from libocpp to OCPP201 module

Signed-off-by: pietfried <[email protected]>
@Pietfried Pietfried force-pushed the feature/add-trigger-reason-to-transaction-finished branch from 9f834d5 to 707ecc5 Compare July 23, 2024 07:42
@Pietfried Pietfried marked this pull request as ready for review July 23, 2024 09:46
Signed-off-by: Piet Gömpel <[email protected]>
@@ -864,6 +915,15 @@ void OCPP201::process_transaction_finished(const int32_t evse_id, const int32_t
this->charge_point->on_charging_state_changed(evse_id, ocpp::v201::ChargingStateEnum::EVConnected,
ocpp::v201::TriggerReasonEnum::StopAuthorized);
}
} else {
// TODO(piet): If StopTxOnEVSideDisconnect is false, authorization shall still be present. This cannot only be
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this for later?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, cant be handled here and requires change to EvseManager and Auth

@Pietfried Pietfried merged commit 466c60b into main Jul 23, 2024
8 checks passed
@Pietfried Pietfried deleted the feature/add-trigger-reason-to-transaction-finished branch July 23, 2024 10:41
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