Beispiel #1
0
 /// <summary>
 /// 保存Modbus串口设置
 /// </summary>
 public static void SaveSystemSetting(SystemSetting setting)
 {
     _systemSetting = setting;
     BaseDataService.SaveSystemSetting(_systemSetting);
     SerialPortService.PortClose();
     LoadSystemSetting();
     //串口服务实例化
     // SerialPortService = SerialPortService.Instance(_systemSetting.ModbusSetting, GetSlaveConfig(), _systemSetting.WarningCabinetId);
 }