Skip to content

Commit bf7b631

Browse files
guelfeyfrzifus
andauthored
OCPP1.6: correct field name in MeterValues (#28)
* OCPP1.6: correct field name in MeterValues * OCPP1.6: correct comment in core MeterValues Co-authored-by: Benedikt Bongartz <[email protected]>
1 parent 9517ab6 commit bf7b631

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ocpp1.6/core/meter_values.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
package core
22

33
import (
4-
"github.com/lorenzodonini/ocpp-go/ocpp1.6/types"
54
"reflect"
5+
6+
"github.com/lorenzodonini/ocpp-go/ocpp1.6/types"
67
)
78

8-
// -------------------- Heartbeat (CP -> CS) --------------------
9+
// -------------------- MeterValues (CP -> CS) --------------------
910

1011
const MeterValuesFeatureName = "MeterValues"
1112

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

0 commit comments

Comments
 (0)