Skip to content

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

@suresh14pamujula

Description

@suresh14pamujula

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);
    }
    `

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions