Open Charge Point Protocol 1.6
This repository contain abstraction layer for easy work with OCPP and validate input and output requests. Currently implemented only version 1.6 JSON. Whereas OCPP2.0 will support only JSON have no plans to implement SOAP.
Article
Installation
npm install --save ocpp-eliftech
Overview
Open Charge Point Protocol (OCPP, http://www.openchargealliance.org/) is a communication protocol between multiple charging stations ("charge points") and a single management software ("central system").
Usage
Server
; const server = ; server; server { // Handle different commands if command instanceof OCPPCommandsBootNotification return status: 'Accepted' currentTime: interval: 60 ; }
Client
; const client = serverUrl: 'http://localhost:9220/webServices/ocpp/CP1111'; await client; const boot = chargePointVendor: 'BrandX' chargeBoxSerialNumber: 'AQ1234VB5678' chargePointSerialNumber: '123' chargePointModel: '12'; let answer = await client;console;
P.S.
If you need professional support with your IOT projects contact us http://www.eliftech.com/.