Interface OcppServer

All Known Implementing Classes:
EvcsOcppServer

public interface OcppServer
  • Method Summary

    Modifier and Type
    Method
    Description
    CompletionStage<eu.chargetime.ocpp.model.Confirmation>
    send(UUID session, eu.chargetime.ocpp.model.Request request)
    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 session
      request - Request that will be sent
      Returns:
      When the request has been sent and a confirmation is received
      Throws:
      eu.chargetime.ocpp.NotConnectedException - notConnectedException
      eu.chargetime.ocpp.UnsupportedFeatureException - unsupportedFeatureException
      eu.chargetime.ocpp.OccurenceConstraintException - occurenceConstraintException