Skip to content

Getting IP address and async event handlers #3

@adam-nielsen

Description

@adam-nielsen

Hi, I am new to this library, switching to it from ocpp-eliftech as it looks like a more modern version.

I have set up an OCPP server, however when the CP connects to it, I can't see how to obtain the IP address it is connecting from. Is there a way to display the connecting IP, similar to getCpId()?

Also, in the example the event notifications are using callback functions:

client.on('BootNotification', (request: BootNotificationRequest, cb: (response: BootNotificationResponse) => void) => {

Is it possible to use async event handlers that return e.g. a Promise<BootNotificationResponse> instead of calling the cb() function?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions