Skip to content

mjasinskee/ocpp-soap

 
 

Repository files navigation

Open Charge Point Protocol for Scala Build Status Coverage Status

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.

How to use

Setup

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-SOAP
  • ocpp-spray: A library to help handling OCPP SOAP messages with Akka and the Spray HTTP library
  • ocpp-12 and ocpp-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://nexus.thenewmotion.com/content/groups/public"

and this to your build.sbt:

libraryDependencies += "com.thenewmotion" %% "ocpp-spray" % "8.0.0"

With Maven, you'd set up the repository in your pom.xml:

    <repository>
        <id>thenewmotion</id>
        <name>The New Motion Repository</name>
        <url>http://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.0</version>
    </dependency>

This library is built only for Scala 2.11.

Changelog

Changes in 8.0.0

  • The SOAP-related subprojects are split off from the original ocpp project

Licensing and acknowledgements

The contents of this repository are © 2012 - 2017 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.

About

OCPP over SOAP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 100.0%