Open
Description
Hi,
I have installed the OCPP module using "npm install --save ocpp-eliftech" and use the OCPP Server example in our index.js file as shown below :
import { OCPPServer, OCPPCommands } from 'ocpp-eliftech';
const server = new OCPPServer();
server.listen(9220);
server.onRequest = async function(command) {
// Handle different commands
if (command instanceof OCPPCommands.BootNotification) {
return {
status: 'Accepted',
currentTime: new Date().toISOString(),
interval: 60
};
}
}
When we run npm start
then got error "SyntaxError: The requested module 'ocpp-eliftech' does not provide an export named 'OCPPServer'"
Please let me know how to solve this issue.
Metadata
Metadata
Assignees
Labels
No labels