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 }