| | |
| | | |
| | | if(DriverLayer.Control.Ins.GatewayOnline_Local) |
| | | { |
| | | |
| | | //List<Function> functions = GetDeviceFunctionList(SPK.BrandType.Hdl); |
| | | //var sss = functions.OrderBy((obj) => obj.collect); |
| | | |
| | | List<Function> readList = new List<Function>(); |
| | | foreach (var function in GetDeviceFunctionList(SPK.BrandType.Hdl)) |
| | | { |
| | | readList.Add(function); |
| | | MainPage.Log($"读取功能状态:{function.name} : {function.sid} "); |
| | | Control.Ins.SendReadCommand(function); |
| | | if (readList.Count > 9) |
| | | { |
| | | Control.Ins.SendReadCommand(readList); |
| | | } |
| | | } |
| | | if(DB_ResidenceData.Instance.GatewayType == 1) |
| | | if (readList.Count > 0) |
| | | { |
| | | Control.Ins.SendReadCommand(readList); |
| | | } |
| | | if (DB_ResidenceData.Instance.GatewayType == 1) |
| | | { |
| | | Dictionary<string, string> pairs = new Dictionary<string, string>(); |
| | | string sendId = Control.Ins.msg_id.ToString(); |
| | |
| | | var page = new List<string>(); |
| | | int count = 0; |
| | | |
| | | //List<Function> functions = GetDeviceFunctionList(SPK.BrandType.Hdl); |
| | | //var sss = functions.OrderBy((obj) => obj.collect); |
| | | foreach (var function in GetDeviceFunctionList(SPK.BrandType.Hdl)) |
| | | { |
| | | page.Add(function.deviceId); |