Skip to content

Feature/admin api#53

Merged
thanaParis merged 8 commits intofeature/network-connection-refactorfrom
feature/admin-api
Mar 25, 2024
Merged

Feature/admin api#53
thanaParis merged 8 commits intofeature/network-connection-refactorfrom
feature/admin-api

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

Signed-off-by: thanaParis <thana.paris@s44.team>
…tConnection

Signed-off-by: thanaParis <thana.paris@s44.team>
…ch updates

Signed-off-by: thanaParis <thana.paris@s44.team>
Signed-off-by: thanaParis <thana.paris@s44.team>
@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 <thana.paris@s44.team>
thanaParis and others added 3 commits March 20, 2024 12:52
Co-authored-by: lydiazcheng <lydiazcheng@users.noreply.github.com>
Signed-off-by: thanaParis <83840862+thanaParis@users.noreply.github.com>
Signed-off-by: thanaParis <thana.paris@s44.team>
Signed-off-by: thanaParis <thana.paris@s44.team>
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 <thana.paris@s44.team>
@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