Skip to content

Improvement: send meter values #11

Description

Hi,

It would be nice to be able to send meter values from the charge point to the backend:

$('#mv').click(function` () {
    onAction();
    sessionStorage.setItem('LastAction', "MeterValues");

    var transactionId = sessionStorage.getItem('TransactionId'); // Does not work this way
    var value = prompt("Please input the new meter value:", "123");

    var MV = JSON.stringify([2, id, "MeterValues", {"connectorId": 1, "transactionId": transactionId, "meterValue": [{"timestamp": formatDate(new Date()), "sampledValue": [{"value": value}]}]}]);

    _websocket.send(MV);
});

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