|
@@ -190,8 +190,10 @@ func SubScribe(client mqtt.Client) {
|
|
|
realMac := transMac(payload.M)
|
|
|
deviceInfo := global.DeviceMap[realMac]
|
|
|
payload.T = deviceInfo.Type
|
|
|
+ payload.M = realMac
|
|
|
marshal, _ := json.Marshal(payload)
|
|
|
content = string(marshal)
|
|
|
+
|
|
|
//连接成功或连接失败,发送已连接设备列表
|
|
|
}
|
|
|
for i := 0; i < 6; i++ {
|