Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the const values in commands not exported by the ocpp-eliftech package #9

Open
MichaelHu2018 opened this issue Sep 2, 2020 · 1 comment

Comments

@MichaelHu2018
Copy link

the ocpp-eliftech package at https://www.npmjs.com/package/ocpp-eliftech seems not export the consts defined in each command.

for example in the command StatusNotification, the consts like these are not accessible from codebase that is using this package.

export const STATUS_SUSPENDEDEV = 'SuspendedEV';
export const STATUS_FINISHING = 'Finishing';
export const STATUS_RESERVED = 'Reserved';
export const STATUS_UNAVAILABLE = 'Unavailable';
export const STATUS_FAULTED = 'Faulted';

@adam-nielsen
Copy link

Have a look at the example code where they show how to access these:

import * as BootNotificationConst from 'ocpp-eliftech/dist/commands/BootNotification.js';

...

return {
	status: BootNotificationConst.STATUS_ACCEPTED,
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants