| | |
| | | if (otherDevice == null) return new WebResponseContent { Status = false, Message = "æªè¿æ¥" }; |
| | | if (group=="çµæ°") |
| | | { |
| | | var values = otherDevice.Communicator.Read<bool>("M27"); |
| | | var values = otherDevice.Communicator.Write< bool > ("M27",true); |
| | | } |
| | | if(group=="æºæ¢°") |
| | | { |
| | | var values = otherDevice.Communicator.Read<bool>("M29"); |
| | | var values = otherDevice.Communicator.Write<bool>("M29", true); |
| | | } |
| | | if (group == "å°æ²") |
| | | { |
| | | var values = otherDevice.Communicator.Read<bool>("M31"); |
| | | var values2 = otherDevice.Communicator.Read<bool>("M33"); |
| | | var values = otherDevice.Communicator.Write<bool>("M31", true); |
| | | var values2 = otherDevice.Communicator.Write<bool>("M33", true); |
| | | } |
| | | return new WebResponseContent { Status = true,Message=$"{group}ç»å¼é¨æå" }; |
| | | } |
| | |
| | | if (otherDevice == null) return new WebResponseContent { Status = false, Message = "æªè¿æ¥" }; |
| | | if (group == "çµæ°") |
| | | { |
| | | var values = otherDevice.Communicator.Read<bool>("M28"); |
| | | var values = otherDevice.Communicator.Write<bool>("M28", false); |
| | | } |
| | | if (group == "æºæ¢°") |
| | | { |
| | | var values = otherDevice.Communicator.Read<bool>("M30"); |
| | | var values = otherDevice.Communicator.Write<bool>("M30",false); |
| | | } |
| | | if (group == "å°æ²") |
| | | { |
| | | var values = otherDevice.Communicator.Read<bool>("M32"); |
| | | var values2 = otherDevice.Communicator.Read<bool>("M34"); |
| | | var values = otherDevice.Communicator.Write<bool>("M32", false); |
| | | var values2 = otherDevice.Communicator.Write<bool>("M34", false); |
| | | } |
| | | return new WebResponseContent { Status = true, Message = $"{group}ç»å
³é¨æå" }; |
| | | |