From e9f7c97f7529bbbb5ec3b94318515c3787eef1e3 Mon Sep 17 00:00:00 2001 From: rohit-hyper <37410764+rohit-hyper@users.noreply.github.com> Date: Thu, 15 Mar 2018 20:28:10 +0530 Subject: [PATCH] Update README.md Updates README.md to use correct exported names --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 657d395..db8aa83 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,9 @@ Open Charge Point Protocol (OCPP, ) is a com Server ```js -import { OCPPServer, OCPPCommands } from 'ocpp-eliftech'; +import { CentralSystem, OCPPCommands } from 'ocpp-eliftech'; -const server = new OCPPServer(); +const server = new CentralSystem(); server.listen(9220); @@ -40,9 +40,9 @@ server.onRequest = async function(command) { Client ```js -import { OCPPClient, OCPPCommands } from 'ocpp-eliftech'; +import { ChargePoint, OCPPCommands } from 'ocpp-eliftech'; -const client = new OCPPClient({ +const client = new ChargePoint({ serverUrl: 'http://localhost:9220/webServices/ocpp/CP1111' });