You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
}
`
The text was updated successfully, but these errors were encountered:
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?
`
/**
The session will use the feature repository for the given {@link ProtocolVersion}.
*/
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);
}
`
The text was updated successfully, but these errors were encountered: