You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.4 KiB

using Microsoft.AspNetCore.Mvc;
using Module.HMeter.ModBusTcp;
namespace Monitor.EqmMgr.WebApi.Controllers
{
public class HMeterParamController: ControllerBase
{
private readonly ILogger<HMeterParamController> _logger;
public HMeterParamController(ILogger<HMeterParamController> logger)
{
_logger = logger;
}
/// <summary>
/// 主控室温湿度设备参数值
/// </summary>
/// <returns></returns>
[HttpPost]
[Route("/api/[controller]/GetHumiParamValue")]
public MHumiParamResult GetMainControlHumiParamValue()
{
return CmnHumiMeterBaseInfo.HUM01.F_HumiParamResult;
}
/// <summary>
/// 下层温湿度设备参数值
/// </summary>
/// <returns></returns>
[HttpPost]
[Route("/api/[controller]/GetLowerHumiParamValue")]
public MHumiParamResult GetLowerHumiParamValue()
{
return CmnHumiMeterBaseInfo.HUM02.F_HumiParamResult;
}
/// <summary>
/// 上层温湿度设备参数值
/// </summary>
/// <returns></returns>
[HttpPost]
[Route("/api/[controller]/GetUpperHumiParamValue")]
public MHumiParamResult GetUpperHumiParamValue()
{
return CmnHumiMeterBaseInfo.HUM03.F_HumiParamResult;
}
}
}