Skip to content

Commit

Permalink
coreid改成sn
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotodian committed Aug 23, 2021
1 parent b804d88 commit 900699f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ac/websocket/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"encoding/json"
"fmt"
"io"
"strconv"
"strings"
"sync"
"time"
Expand Down Expand Up @@ -376,10 +375,10 @@ func (c *Client) ReadPump() {
var sendQos byte

if !trData.IsTelemetry {
sendTopic = "coregw/" + c.Hub.Hostname + "/command/" + strconv.FormatUint(c.ChargeStation.CoreID(), 10)
sendQos = 2
sendTopic = "coregw/" + c.Hub.Hostname + "/command/" + c.ChargeStation.SN()
sendQos = 0
} else {
sendTopic = "coregw/" + c.Hub.Hostname + "/telemetry/" + strconv.FormatUint(c.ChargeStation.CoreID(), 10)
sendTopic = "coregw/" + c.Hub.Hostname + "/telemetry/" + c.ChargeStation.SN()
sendQos = 0
}

Expand Down

0 comments on commit 900699f

Please sign in to comment.