Ocpp: fix BootNotification trigger (#15396)
This commit is contained in:
parent
c977a26e40
commit
40b6d1b7f3
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue