Skip to content

Commit

Permalink
Ocpp: handle connector:0 (evcc-io#15300)
Browse files Browse the repository at this point in the history
  • Loading branch information
premultiply authored Aug 8, 2024
1 parent 9056fc6 commit 27e28f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charger/ocpp/cp_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ func (cp *CP) StatusNotification(request *core.StatusNotificationRequest) (*core
return nil, ErrInvalidRequest
}

if request.ConnectorId == 0 {
return new(core.StatusNotificationConfirmation), nil
}

conn := cp.connectorByID(request.ConnectorId)
if conn == nil {
return nil, ErrInvalidConnector
Expand Down

0 comments on commit 27e28f5

Please sign in to comment.