-
Couldn't load subscription status.
- Fork 190
Open
Description
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
Labels
No labels