Open MichaelHu2018 opened 4 years ago
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,
};
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';