Class MyJsonServer

java.lang.Object
io.openems.edge.evcs.ocpp.server.MyJsonServer

public class MyJsonServer extends Object
  • Constructor Details

  • Method Details

    • activate

      protected void activate(String ip, int port)
      Starting the OCPP Server. Responds to every connecting/disconnecting charging station.
      Parameters:
      ip - the IP address
      port - the port
    • deactivate

      protected void deactivate()
    • send

      public 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 a request to an Evcs using the server.
      Parameters:
      session - unique session id referring to the corresponding Evcs
      request - given request that needs to be sent
      Returns:
      CompletitionStage
      Throws:
      eu.chargetime.ocpp.OccurenceConstraintException - OccurenceConstraintException
      eu.chargetime.ocpp.UnsupportedFeatureException - UnsupportedFeatureException
      eu.chargetime.ocpp.NotConnectedException - NotConnectedException
    • sendDefault

      public void sendDefault(UUID session, eu.chargetime.ocpp.model.Request request)
      Default implementation of the send method.
      Parameters:
      session - given session
      request - given request
    • sendInitialRequests

      protected void sendInitialRequests(UUID sessionIndex, AbstractManagedOcppEvcsComponent ocppEvcs)
      Sending initially all required requests to the EVCS.
      Parameters:
      sessionIndex - given session
      ocppEvcs - given evcs
    • sendPermanentRequests

      protected void sendPermanentRequests(List<AbstractManagedOcppEvcsComponent> evcss)
      Sending all permanently required requests to the EVCS.
      Parameters:
      evcss - given evcss