瀏覽代碼

程序启动就默认开启充电位

hh 1 周之前
父節點
當前提交
3fee24d327
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      entry/src/main/ets/pages/Index.ets

+ 2 - 0
entry/src/main/ets/pages/Index.ets

@@ -139,6 +139,8 @@ struct WorkshopPage {
         await this.createClient();
         await this.connect();
         await this.subscribe();
+        this.issueControlCommand('Charging1Set', 1)
+        this.issueControlCommand('Charging2Set', 1)
       }, 30000);
     } catch (e) {
       console.log('hhtest', '创建mqtt失败' + e);