Parcourir la source

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

hh il y a 1 semaine
Parent
commit
3fee24d327
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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);