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

In ocpp v2 library - MultiProtocolSessionFactory doesnt support requests synchronously #357

Open
suresh14pamujula opened this issue Nov 9, 2024 · 0 comments

Comments

@suresh14pamujula
Copy link

suresh14pamujula commented Nov 9, 2024

It appears that in ocpp v2 library, there is no support for requests synchronously. Below is the code for quick reference.
In case we need synchronous achieved - how this can be achieved?

`
/**

  • Creates a server session
  • The session will use the feature repository for the given {@link ProtocolVersion}.

  • @param communicator the {@link Communicator} to use for the server session
  • @param protocolVersion the {@link ProtocolVersion} to use for the server session
  • @return the server {@link Session}
    */
    public ISession createSession(Communicator communicator, ProtocolVersion protocolVersion) {
    IFeatureRepository featureRepository =
    multiProtocolFeatureRepository.getFeatureRepository(protocolVersion);
    AsyncPromiseFulfillerDecorator promiseFulfiller =
    new AsyncPromiseFulfillerDecorator(new SimplePromiseFulfiller());
    return new Session(communicator, new Queue(), promiseFulfiller, featureRepository);
    }
    `
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

No branches or pull requests

1 participant