Skip to content

Commit

Permalink
Ocpp: use shorter timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Sep 23, 2024
1 parent 0b0d8fd commit 50bd2f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charger/ocpp/cp_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var (
func (cp *CP) OnBootNotification(request *core.BootNotificationRequest) (*core.BootNotificationConfirmation, error) {
res := &core.BootNotificationConfirmation{
CurrentTime: types.Now(),
Interval: 60,

This comment has been minimized.

Copy link
@premultiply

premultiply Sep 23, 2024

Member

Hier (Fall RegistrationStatusAccepted, Bedeutung: Heartbeat-Intervall) muss aus Kompatiblitätsgründen mit manchen Boxen der Wert fix auf 60 bleiben.

This comment has been minimized.

Copy link
@andig

andig Sep 24, 2024

Author Member

Ist reverted- danke!

Interval: int(Timeout.Seconds()),
Status: core.RegistrationStatusAccepted,
}

Expand Down
2 changes: 1 addition & 1 deletion charger/ocpp/cs_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (cs *CS) OnBootNotification(id string, request *core.BootNotificationReques

res := &core.BootNotificationConfirmation{
CurrentTime: types.Now(),
Interval: 60,
Interval: int(Timeout.Seconds()),
Status: core.RegistrationStatusPending, // not accepted during startup
}

Expand Down

0 comments on commit 50bd2f7

Please sign in to comment.