Skip to content

Feature/admin api #53

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

Merged
merged 8 commits into from
Mar 25, 2024
Merged

Conversation

thanaParis
Copy link
Collaborator

@thanaParis thanaParis commented Mar 19, 2024

Refactors MessageRouter as a module:

  1. New OcppRouter module contains MessageRouter implementation
    a) OcppRouter supports a 'admin api', allowing system config to be adjusted for central system, as well as exposing a 'subscription api'

Subscription API:
subscribe a url to receive events - onConnection events, onMessage events, sentMessage events, and onClose events

image

messageFilter regex string field provided to only match certain messages for onMessage and sentMessage events

This is a diagram of the overall changes in class structure between this pr and the network connection refactor pr -- note the IMessageRouter is the same instance in both WebsocketNetworkConnection and IModuleAPI.
MessageRouter drawio

@thanaParis thanaParis changed the base branch from rc-1.1.0 to feature/network-connection-refactor March 19, 2024 15:21
thanaParis added a commit that referenced this pull request Mar 19, 2024
Signed-off-by: thanaParis <[email protected]>
Copy link
Contributor

@lydiazcheng lydiazcheng left a comment

Choose a reason for hiding this comment

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

OcppRouter command in unix-init-install-all.sh is missing. Other parts look good!

…r to ocpp router instead of central system

Signed-off-by: thanaParis <[email protected]>
@thanaParis
Copy link
Collaborator Author

OcppRouter command in unix-init-install-all.sh is missing. Other parts look good!

Added!

@thanaParis thanaParis merged commit 5f88e72 into feature/network-connection-refactor Mar 25, 2024
@thanaParis thanaParis mentioned this pull request Mar 25, 2024
@thanaParis thanaParis mentioned this pull request Apr 5, 2024
@ChrisWeissmann ChrisWeissmann deleted the feature/admin-api branch June 5, 2024 13:26
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