Skip to content

Commit

Permalink
网关命令主题修改
Browse files Browse the repository at this point in the history
  • Loading branch information
hezhuozhuo committed Jul 26, 2023
1 parent 455c23d commit 351444a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/thingspanel/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (t *Thingspanel) OnSubscribeWrapper(pre server.OnSubscribe) server.OnSubscr
return nil
}
flag := false
var sub_list = [8]string{"device/attributes/", "device/event/", "device/command/", "gateway/attributes/", "gateway/event/", "gateway/serves/", "attributes/relaying/", "ota/device/inform/"}
var sub_list = [8]string{"device/attributes/", "device/event/", "device/command/", "gateway/attributes/", "gateway/event/", "gateway/command/", "attributes/relaying/", "ota/device/inform/"}
for _, sub := range sub_list {
if the_sub == sub+string(username) {
flag = true
Expand Down Expand Up @@ -150,7 +150,7 @@ func (t *Thingspanel) OnMsgArrivedWrapper(pre server.OnMsgArrived) server.OnMsgA
"device/command", //命令下发
"gateway/attributes", //网关属性上报
"gateway/event", //网关事件上报
"gateway/serves", //网关服务调用
"gateway/command", //网关命令调用
"ota/device/inform", //设备升级通知
"ota/device/progress", //设备升级进度
}
Expand Down

0 comments on commit 351444a

Please sign in to comment.