| | |
| | | } |
| | | break; |
| | | case Command.SetSingleLightACK: |
| | | Console.WriteLine ("Command.SetSingleLightACK"); |
| | | //Console.WriteLine ($"Command.SetSingleLightACK: subnetID:{subnetID} deviceID:{deviceID} 回路:{usefullBytes [0]}"); |
| | | //Console.WriteLine ("Command.SetSingleLightACK"); |
| | | foreach (var room in Room.Lists) { |
| | | var common = room.DeviceList.Find ((obj) => obj.CommonLoopID == subnetID.ToString () + "_" + deviceID.ToString () + "_" + usefullBytes [0].ToString ()); |
| | | if (common != null) { |
| | |
| | | if (!string.IsNullOrEmpty (room.Name)) |
| | | UserDeviceToLight.UpdateBrighingCount (updateFlag); |
| | | if (hadBeUpdate) { |
| | | |
| | | UserRoom.UpdataDeviceStatus (common); |
| | | UserLightPage.UpdateStatus (updateFlag, usefullBytes [2]); |
| | | UserDeviceToLight.UpdateStatus (updateFlag, usefullBytes [2]); |