Rename SoC to Soc and LoadPoint to Loadpoint (#5549)

This commit is contained in:
andig 2022-12-23 10:19:23 +01:00 • committed by GitHub
parent 54f204c0f8
commit 03d6d1418a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
165 changed files with 1054 additions and 1032 deletions

View file

@ -303,10 +303,10 @@ func targetChargeHandler(loadpoint targetCharger) http.HandlerFunc {
}
res := struct {
SoC int `json:"soc"`
Soc int `json:"soc"`
Time time.Time `json:"time"`
}{
SoC: socV,
Soc: socV,
Time: timeV,
}
@ -380,6 +380,6 @@ func socketHandler(hub *SocketHub) http.HandlerFunc {
// TargetCharger defines target charge related loadpoint operations
type targetCharger interface {
// SetTargetCharge sets the charge targetSoC
// SetTargetCharge sets the charge targetSoc
SetTargetCharge(time.Time, int) error
}