From 40b6d1b7f3963e4fea8ec9e291024730eaa9208f Mon Sep 17 00:00:00 2001 From: premultiply <4681172+premultiply@users.noreply.github.com> Date: Thu, 15 Aug 2024 13:40:12 +0200 Subject: [PATCH] Ocpp: fix BootNotification trigger (#15396) --- charger/ocpp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charger/ocpp.go b/charger/ocpp.go index 324e8d896..6a93ccce7 100644 --- a/charger/ocpp.go +++ b/charger/ocpp.go @@ -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")