Package io.openems.edge.evcs.ocpp.common
Interface OcppServer
- All Known Implementing Classes:
EvcsOcppServer
public interface OcppServer
-
Method Summary
Modifier and TypeMethodDescriptionCompletionStage<eu.chargetime.ocpp.model.Confirmation>
Send message to EVCS.
-
Method Details
-
send
CompletionStage<eu.chargetime.ocpp.model.Confirmation> send(UUID session, eu.chargetime.ocpp.model.Request request) throws eu.chargetime.ocpp.OccurenceConstraintException, eu.chargetime.ocpp.UnsupportedFeatureException, eu.chargetime.ocpp.NotConnectedException Send message to EVCS.Example:
send(session, request).whenComplete((confirmation, throwable) -> { this.logInfo(log, confirmation.toString()); });
- Parameters:
session
- Current sessionrequest
- Request that will be sent- Returns:
- When the request has been sent and a confirmation is received
- Throws:
eu.chargetime.ocpp.NotConnectedException
- notConnectedExceptioneu.chargetime.ocpp.UnsupportedFeatureException
- unsupportedFeatureExceptioneu.chargetime.ocpp.OccurenceConstraintException
- occurenceConstraintException
-