Package io.openems.edge.evcs.ocpp.server
Class MyJsonServer
java.lang.Object
io.openems.edge.evcs.ocpp.server.MyJsonServer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Starting the OCPP Server.protected void
CompletionStage<eu.chargetime.ocpp.model.Confirmation>
Send a request to an Evcs using the server.void
sendDefault
(UUID session, eu.chargetime.ocpp.model.Request request) Default implementation of the send method.protected void
sendInitialRequests
(UUID sessionIndex, AbstractManagedOcppEvcsComponent ocppEvcs) Sending initially all required requests to the EVCS.protected void
Sending all permanently required requests to the EVCS.
-
Constructor Details
-
MyJsonServer
-
-
Method Details
-
activate
Starting the OCPP Server. Responds to every connecting/disconnecting charging station.- Parameters:
ip
- the IP addressport
- 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 Evcsrequest
- given request that needs to be sent- Returns:
- CompletitionStage
- Throws:
eu.chargetime.ocpp.OccurenceConstraintException
- OccurenceConstraintExceptioneu.chargetime.ocpp.UnsupportedFeatureException
- UnsupportedFeatureExceptioneu.chargetime.ocpp.NotConnectedException
- NotConnectedException
-
sendDefault
Default implementation of the send method.- Parameters:
session
- given sessionrequest
- given request
-
sendInitialRequests
Sending initially all required requests to the EVCS.- Parameters:
sessionIndex
- given sessionocppEvcs
- given evcs
-
sendPermanentRequests
Sending all permanently required requests to the EVCS.- Parameters:
evcss
- given evcss
-