From 8960f866958ece0900b0ee13e70c9320507f98db Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期二, 07 二月 2023 18:50:23 +0800 Subject: [PATCH] 2023年02月07日18:50:21 --- HDL_ON/DAL/DriverLayer/Control.cs | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/HDL_ON/DAL/DriverLayer/Control.cs b/HDL_ON/DAL/DriverLayer/Control.cs index 355ef81..ec10084 100644 --- a/HDL_ON/DAL/DriverLayer/Control.cs +++ b/HDL_ON/DAL/DriverLayer/Control.cs @@ -1235,12 +1235,12 @@ // return; // } //} - //MainPage.Log($"A鍗忚鏇存柊鐘舵��:{revString}"); + MainPage.Log($"闊充箰鏀跺埌鏁版嵁:{revString}"); foreach (var attr in updateTemp.status) { localFunction.time_stamp = temp.time_stamp; localFunction.SetAttrState(attr.key, attr.value); - //Console.WriteLine("闊充箰鎾斁鍣ㄦ坊鍔犵紦瀛樻暟鎹�=======" + revString); + Console.WriteLine("闊充箰鎾斁鍣ㄦ坊鍔犵紦瀛樻暟鎹�=======" + revString); } @@ -1283,6 +1283,8 @@ RGBPage.UpdataStates(localFunction); break; case SPK.LightRGBW: + localFunction.lastState = Language.StringByID(StringId.Brightness) + " : " + localFunction.GetAttrState(FunctionAttributeKey.Brightness) + "%"; + RGBWPage.UpdataStates(localFunction); break; case SPK.LightCCT: localFunction.lastState = Language.StringByID(StringId.Brightness) + " : " + localFunction.GetAttrState(FunctionAttributeKey.Brightness) + "%"; @@ -1309,6 +1311,8 @@ RollingShutterPage.UpdataState(localFunction); break; case SPK.CurtainShades: + localFunction.lastState = Language.StringByID(StringId.Open) + localFunction.GetAttrState(FunctionAttributeKey.Percent) + "%"; + VenetianBlindsPage.UpdataState(localFunction); break; case SPK.AcStandard: case SPK.HvacAC: @@ -1434,12 +1438,14 @@ case SPK.SensorGas: case SPK.HvacCac: case SPK.SensorHelp: + case SPK.MechanicalArm: //璁惧鐘舵�佹帹閫� //鐘舵�佹洿鏂� Stan.HdlDeviceStatuPushLogic.Current.UpdateDeviceStatu(updateTemp.sid, updateTemp.status); break; case SPK.SenesorMegahealth: case SPK.SenesorMegahealth2: + case SPK.SensorMmvPose: var tempStatus = localFunction.attributes.Find((sta) => sta.key == FunctionAttributeKey.TargetStatus); if (tempStatus != null) @@ -1484,12 +1490,18 @@ case SPK.AvMusic: case SPK.MusicStandard: //UI.Music.MusicMain.mMusicMain.RefreshView(updateTemp); - //Console.WriteLine("闊充箰鎾斁鍣ㄦ樉绀虹姸鎬�======="+ revString); + Console.WriteLine("闊充箰鎾斁鍣ㄦ樉绀虹姸鎬�======="+ revString); //wjc break; case SPK.Inverter: + MainPage.Log("閫嗗彉鍣ㄦ暟鎹洿鏂�"); var status = new Dictionary<string, object> { ["method"] = "status", ["data"] = temp.objects }; - Inverter.Ins.H5Page.CallJS($"nativeToJs(\'{Newtonsoft.Json.JsonConvert.SerializeObject(status)}\')"); + MainPage.Log("閫嗗彉鍣ㄦ暟鎹洿鏂�1"); + Application.RunOnMainThread(() => + { + Inverter.Ins.H5Page.CallJS($"nativeToJs(\'{Newtonsoft.Json.JsonConvert.SerializeObject(status)}\')"); + }); + MainPage.Log("閫嗗彉鍣ㄦ暟鎹洿鏂�2"); break; } -- Gitblit v1.8.0