wxr
2022-08-31 85c694b11e858e322d1bd7935e997fa372b3302c
场景控制增加延时
2个文件已修改
6 ■■■■■ 已修改文件
Crabtree/SmartHome/UI/SimpleControl/Phone/Register/MigrationServer.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Crabtree/SmartHome/UI/SimpleControl/Phone/Scene/SceneMethod.cs 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Crabtree/SmartHome/UI/SimpleControl/Phone/Register/MigrationServer.cs
@@ -563,7 +563,7 @@
                            gateWayString = CommonPage.MyEncodingUTF8.GetString (IO.FileUtils.ReadFile (gatewayFileName));
                            common = Newtonsoft.Json.JsonConvert.DeserializeObject<GatewayBase> (gateWayString);
                            //bool
                            //bool
                            CommonPage.IsRemote = false;
                            Control.ControlBytesSendHasReturn (Command.ReadGateway, common.SubnetID, common.DeviceID, new byte [] { CommonPage.RandomHigh, CommonPage.RandomLow });
Crabtree/SmartHome/UI/SimpleControl/Phone/Scene/SceneMethod.cs
@@ -464,10 +464,11 @@
                                }
                            } catch { }
                        });
                        System.Threading.Thread.Sleep (50);
                    }
                } else {
                    foreach (var common in tempScene.GlobalSceneDeviceList) {
                    switch (common.obj1) {
                        switch (common.obj1) {
                        case 0://0   无效 Invalid
                            break;
                        case 85://0x55  场景 Scene ||0x0002
@@ -515,6 +516,7 @@
                            //112 LCD & LED休眠 LCD & LED Sleep
                            //113 服务器控制   Server control
                        }
                        System.Threading.Thread.Sleep (50);
                    }
                }
            });