public bool ClearAllRules(string dev_IP) { DeviceForm devform = new DeviceForm(dev_IP, 22222); IConfigRules configDevice = new ConfigRules(devform); return(configDevice.ClearAllRules()); }
public bool ChangeOPCRules(string dst_IP, string src_IP, string dev_IP, bool log_record, bool add_delete) { OPCRulesForm orf = new OPCRulesForm(); orf.setDst_IPAndSrc_IP(dst_IP, src_IP); DeviceForm devform = new DeviceForm(dev_IP, 22222); IConfigRules configDevice = new ConfigRules(devform); return(configDevice.ConfigOPCRules(orf, add_delete)); }
public bool ChangeModbusTcpRules(string dst_IP, string src_IP, string min_addr, string max_addr, string func, int Min_data, int Max_data, string dev_IP, bool log_record, bool add_delete) { ModbusTcpRulesForm mtrf = new ModbusTcpRulesForm(); mtrf.setIP_Addr_Funcode(dst_IP, src_IP, min_addr, max_addr, func, Min_data, Max_data); DeviceForm devform = new DeviceForm(dev_IP, 22222); IConfigRules configDevice = new ConfigRules(devform); return(configDevice.ConfigModbusTcpRules(mtrf, add_delete)); }