Ocpp: fix BootNotification trigger (#15396)

This commit is contained in:
premultiply 2024-08-15 13:40:12 +02:00 • committed by GitHub
parent c977a26e40
commit 40b6d1b7f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -261,7 +261,7 @@ func NewOCPP(id string, connector int, idtag string,
// see who's there
if c.hasRemoteTriggerFeature {
if err := conn.TriggerMessageRequest(core.BootNotificationFeatureName); err == nil {
if err := ocpp.Instance().TriggerMessageRequest(cp.ID(), core.BootNotificationFeatureName); err == nil {
select {
case <-time.After(timeout):
c.log.DEBUG.Printf("BootNotification timeout")