Skip to content

Commit

Permalink
OCPP1.6: correct field name in MeterValues (#28)
Browse files Browse the repository at this point in the history
* OCPP1.6: correct field name in MeterValues

* OCPP1.6: correct comment in core MeterValues

Co-authored-by: Benedikt Bongartz <benne@klimlive.de>
  • Loading branch information
guelfey and frzifus committed Aug 10, 2020
1 parent 9517ab6 commit bf7b631
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ocpp1.6/core/meter_values.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
package core

import (
"github.com/lorenzodonini/ocpp-go/ocpp1.6/types"
"reflect"

"github.com/lorenzodonini/ocpp-go/ocpp1.6/types"
)

// -------------------- Heartbeat (CP -> CS) --------------------
// -------------------- MeterValues (CP -> CS) --------------------

const MeterValuesFeatureName = "MeterValues"

// The field definition of the MeterValues request payload sent by the Charge Point to the Central System.
type MeterValuesRequest struct {
ConnectorId int `json:"connectorId" validate:"gte=0"`
TransactionId *int `json:"reservationId,omitempty"`
TransactionId *int `json:"transactionId,omitempty"`
MeterValue []types.MeterValue `json:"meterValue" validate:"required,min=1,dive"`
}

Expand Down

0 comments on commit bf7b631

Please sign in to comment.