| | |
| | | uploadScene.DeviceListObject.Add (new AddCloudSceneDeviceData () { |
| | | Command = (int)Command.UpdataCurtainModelStutas, SubnetId = device.SubnetID, DeviceId = device.DeviceID, |
| | | DeviceName = device.Name, DeviceType = "CurtainModule", LoopId = device.LoopID, |
| | | DataString = device.Status.ToString () |
| | | DataString = ((byte)device.Status).ToString () |
| | | }); |
| | | } |
| | | } else if (common.Type == DeviceType.CurtainRoller) { |
| | |
| | | uploadScene.DeviceListObject.Add (new AddCloudSceneDeviceData () { |
| | | Command = (int)Command.UpdataCurtainModelStutas, SubnetId = device.SubnetID, DeviceId = device.DeviceID, |
| | | DeviceName = device.Name, DeviceType = "CurtainRoller", LoopId = device.LoopID, |
| | | DataString = (device.Status + 3).ToString () |
| | | DataString = ((byte)device.CurtainProress + 3).ToString () |
| | | }); |
| | | } |
| | | } else if (common.Type == DeviceType.CurtainTrietex) { |
| | |
| | | uploadScene.DeviceListObject.Add (new AddCloudSceneDeviceData () { |
| | | Command = (int)Command.UpdataCurtainModelStutas, SubnetId = device.SubnetID, DeviceId = device.DeviceID, |
| | | DeviceName = device.Name, DeviceType = "CurtainRoller", LoopId = device.LoopID, |
| | | DataString = (device.Status + 3).ToString () |
| | | DataString = ((byte)device.CurtainProress + 3).ToString () |
| | | }); |
| | | } |
| | | } else if (common.Type == DeviceType.HVAC || common.Type == DeviceType.ACInfrared) { |