The Open Charge Point Protocol (OCPP) is a network protocol for communication between electric vehicle chargers and a central backoffice system. It is developed by the Open Charge Alliance (OCA). You can find more details on the official website of the OCA.
This library provides support for OCPP versions 1.2 and 1.5 using SOAP as the underlying RPC mechanism, using NewMotion's base OCPP library for the representation of OCPP messages.
The library is divided four separate modules so applications using it won't get too many dependencies dragged in. Those are:
ocpp-soap
: A version-independent interface to OCPP-SOAPocpp-spray
: A library to help handling OCPP SOAP messages with Akka and the Spray HTTP libraryocpp-12
andocpp-15
: WSDL files and generated code for the OCPP 1.2 and 1.5 SOAP services
So if you want to use the high-level Spray-based interface, and you're
using SBT, you can declare the dependency by adding this to your plugins.sbt
:
resolvers += "TNM" at "http:https://nexus.thenewmotion.com/content/groups/public"
and this to your build.sbt
:
libraryDependencies += "com.thenewmotion" %% "ocpp-spray" % "8.0.2"
With Maven, you'd set up the repository in your pom.xml:
<repository>
<id>thenewmotion</id>
<name>The New Motion Repository</name>
<url>http:https://nexus.thenewmotion.com/content/repositories/releases-public</url>
</repository>
and add this to your dependencies:
<dependency>
<groupId>com.thenewmotion.ocpp</groupId>
<artifactId>ocpp-spray_2.11</artifactId>
<version>8.0.2</version>
</dependency>
- Drop Scala 2.11 support
- Add Scala 2.12 support
- Update dependencies
- The SOAP-related subprojects are split off from the original
ocpp
project
The contents of this repository are © 2012 - 2019 The New Motion B.V., licensed under the GPL version 3, except the OCPP specification PDFs and WSDL files, which are licensed by the Open Charge Alliance as indicated in the files.