Ocpp: use shorter timeout
This commit is contained in:
parent
0b0d8fd9f2
commit
50bd2f744f
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue