Ocpp: use shorter timeout

This commit is contained in:
andig 2024-09-23 09:21:04 +02:00
parent 0b0d8fd9f2
commit 50bd2f744f
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ var (
func (cp *CP) OnBootNotification(request *core.BootNotificationRequest) (*core.BootNotificationConfirmation, error) {
res := &core.BootNotificationConfirmation{
CurrentTime: types.Now(),
Interval: 60,
Interval: int(Timeout.Seconds()),
Status: core.RegistrationStatusAccepted,
}

View file

@ -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
}