matth-x / MicroOcppSimulator

GNU General Public License v3.0
98 stars 44 forks source link

Missing MeterValues for Voltage, Current, and SoC in simulator data #33

Closed suntntx closed 1 month ago

suntntx commented 1 month ago

Description:

While adding support for Voltage, Current, and SoC in the evse.cpp, it was found that the MeterValues message received from the simulator does not contain these measurands. The current message looks like this:

[2,"0b2d5c05-3b51-65e4-ca5a-fd0b2d5b5e52","MeterValues",{
  "connectorId":1,
  "transactionId":158,
  "meterValue":[
    {
      "timestamp":"2024-10-14T14:19:26.761Z",
      "sampledValue":[
        {
          "value":"2997",
          "context":"Sample.Periodic",
          "measurand":"Energy.Active.Import.Register",
          "unit":"Wh"
        },
        {
          "value":"180001.00",
          "context":"Sample.Periodic",
          "measurand":"Power.Active.Import",
          "unit":"W"
        }
      ]
    }
  ]
}]

Expected:

To support complete meter values, the message should also include Voltage, Current, and State of Charge (SoC) as additional sampled values.