Przeglądaj źródła

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

hh 1 tydzień temu
rodzic
commit
3fee24d327
1 zmienionych plików z 2 dodań i 0 usunięć
  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);