| | |
| | | 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 }); |
| | | |
| | |
| | | } |
| | | } 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 |
| | |
| | | //112 LCD & LED休眠 LCD & LED Sleep |
| | | //113 服务器控制 Server control |
| | | } |
| | | System.Threading.Thread.Sleep (50); |
| | | } |
| | | } |
| | | }); |