添加项目文件。

This commit is contained in:
xyy
2026-06-17 15:04:35 +08:00
parent ba1c916dd7
commit 09072ccda5
32 changed files with 2710 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
namespace HME_MoistureLossMeter.Models
{
public class PlcConfiguration
{
public string IpAddress { get; set; } = "192.168.1.10";
public int Port { get; set; } = 502;
public byte SlaveId { get; set; } = 1;
public ushort PressureRegister { get; set; } = 1000;
public ushort WetFlowRegister { get; set; } = 1002;
public ushort WetFlowRegister2 { get; set; } = 1004;
public ushort WetFlowRegister3 { get; set; } = 1006;
public ushort PressureRegisterStation1 { get; set; } = 1008;
public ushort PressureRegisterStation2 { get; set; } = 1010;
public ushort PressureRegisterStation3 { get; set; } = 1012;
}
public class MesConfiguration
{
public string BaseUrl { get; set; } = "http://localhost:8080";
public string ApiKey { get; set; } = "";
public int TimeoutSeconds { get; set; } = 30;
public int RetryCount { get; set; } = 3;
}
public class DeviceConfiguration
{
public string DeviceId { get; set; } = "HME-001";
public int UpdateIntervalMs { get; set; } = 1000;
}
}