|
@@ -100,7 +100,7 @@ func yfkj_execLegacyCmd(client *Client, msg mqtt.Message) error {
|
|
|
case "dtu_reboot": ///////////////// 重启RTU(历史原因, 也叫DTU)设备
|
|
case "dtu_reboot": ///////////////// 重启RTU(历史原因, 也叫DTU)设备
|
|
|
data, _ := json.Marshal(map[string]string{"result": "system will reboot"})
|
|
data, _ := json.Marshal(map[string]string{"result": "system will reboot"})
|
|
|
yfkj_sendResponse(client, string(data))
|
|
yfkj_sendResponse(client, string(data))
|
|
|
- utils.ExecShell("reboot")
|
|
|
|
|
|
|
+ utils.ExecShell("reboot") ///// 设备重启
|
|
|
case "dtu_update": //// 升级RTU(历史原因, 也叫DTU)设备, 先下载后升级
|
|
case "dtu_update": //// 升级RTU(历史原因, 也叫DTU)设备, 先下载后升级
|
|
|
default:
|
|
default:
|
|
|
return errors.New("command not supported")
|
|
return errors.New("command not supported")
|