-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OCPP 1.6 & 2.0 Both #142
Comments
Hi @haresh1288, Sorry for the slow reply. Right now, it's only possible to run 1.6 and 2.0 in two different processes with individual ports if you want to have them on one server.
|
Hi Thomas. What's causing this? I see that https://github.com/ChargeTimeEU/Java-OCA-OCPP/blob/master/ocpp-v1_6/src/main/java/eu/chargetime/ocpp/IServerAPI.java and https://github.com/ChargeTimeEU/Java-OCA-OCPP/blob/master/ocpp-v2_0/src/main/java/eu/chargetime/ocpp/IServerAPI.java are in the same package. Is this the only reason? Cheers |
Hi @bantu, Well to be honest I can't remember the exact reason. It's been so long since I worked on it, and I can't find anything in my notes. Sorry about that. I faintly remember some problems with choosing protocol maybe? How does the client tell the server which protocol it supports? There is some overlaps with the class definitions/names if you load both libraries, but that should be possible to solve. |
Hello @TVolden. I was considering running an OCPP 1.6 and an OCPP 2.0 central system within the same JVM. In this case, the client could simply select which protocol to use by specifying the corresponding backend URL. |
FWIW, OCPP-J should even allow offering both under the SAME URL, as the supported OCPP versions are put in the WebSocket header. |
Can you please provide the guide how to use 1.6 & 2.0 both OCPP version with single Server
The text was updated successfully, but these errors were encountered: