From 50bd2f744f6e71bd1f739d3d8ba7164bf693bb85 Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 23 Sep 2024 09:21:04 +0200 Subject: [PATCH] Ocpp: use shorter timeout --- charger/ocpp/cp_core.go | 2 +- charger/ocpp/cs_core.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charger/ocpp/cp_core.go b/charger/ocpp/cp_core.go index 0fd49d128..2d93a5761 100644 --- a/charger/ocpp/cp_core.go +++ b/charger/ocpp/cp_core.go @@ -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, } diff --git a/charger/ocpp/cs_core.go b/charger/ocpp/cs_core.go index 35c526481..f6b1366a5 100644 --- a/charger/ocpp/cs_core.go +++ b/charger/ocpp/cs_core.go @@ -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 }