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

Refactor of message dispatching #864

Merged
merged 3 commits into from
Nov 15, 2024
Merged

Conversation

Pietfried
Copy link
Contributor

@Pietfried Pietfried commented Nov 11, 2024

Describe your changes

Large refactor of message handling:

  • Transfered message dispatching to separate class in order to reuse it in functional blocks
  • Added new class MessageDispatcherInterface that can dispatch OCPP Call, CallResult, CallError
  • MessageDispatcherInterface became member of ChargePoint classes. The templated methods for sending/dispatching Call, CallResult, CallError have been moved from ChargePoint classes to MessageDispatcher

Implementation of functional blocks (starting with DataTransfer) to follow in subsequent PRs.

Issue ticket number and link

Checklist before requesting a review

@Pietfried
Copy link
Contributor Author

@marcemmers As discussed this only provides the message dispatching part of #849. An implementation for the DataTransfer functional block will follow in a subsequent PR. I adressed the comments you mentioned in #849 . This is now ready for review.

* Added new class MessageDispatcherInterface that can dispatch OCPP Call, CallResult, CallError
* MessageDispatcherInterface became member of ChargePoint classes. The templated methods for sending/dispatching Call, CallResult, CallError have been moved from ChargePoint classes to MessageDispatcher

Signed-off-by: Piet Gömpel <[email protected]>
Signed-off-by: Piet Gömpel <[email protected]>
Signed-off-by: Kai-Uwe Hermann <[email protected]>
@Pietfried Pietfried merged commit 925e9cd into main Nov 15, 2024
7 of 8 checks passed
@Pietfried Pietfried deleted the feature/message-dispatcher-v2 branch November 15, 2024 12:48
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