From 478206080093d096471f82e3eb14d53f273a2c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geir=20G=C3=A5sodden?= Date: Thu, 26 May 2022 19:33:02 +0200 Subject: [PATCH] Updates example --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 40fce40..52f7986 100644 --- a/README.md +++ b/README.md @@ -9,13 +9,16 @@ A module for starting and stopping your Zaptec Go EV charger You will need your username and password for the [Zaptec Portal](https://portal.zaptec.com/) ```JavaScript -import { start, stop } from '@alhemisins/zaptec-go-start-stop'; +import { start, stop } from '@alhemisins/zaptec-go-start-stop' -const username = ''; -const password = ''; +const username = '' +const password = '' -start({ username, password }); // => { status: 'success', message: 'Started charging' } -stop({ username, password }); // => { status: 'success', message: 'Stopped charging' } +const resultStart = await start({ username, password }) +console.log(resultStart) // => { status: 'success', message: 'Started charging' } + +const resultStop = await top({ username, password }) +console.log(resultStop) // => { status: 'success', message: 'Stopped charging' } ``` # Limitations