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.

39 lines
989 B

using Microsoft.AspNetCore.Mvc;
using Module.UpsEqm.ModBusTcp;
namespace Monitor.EqmMgr.WebApi.Controllers
{
public class UpsEqmParamController : ControllerBase
{
private readonly ILogger<UpsEqmParamController> _logger;
public UpsEqmParamController(ILogger<UpsEqmParamController> logger)
{
_logger = logger;
}
/// <summary>
/// UPS设备参数值
/// </summary>
/// <returns></returns>
[HttpPost]
[Route("/api/[controller]/GetUpsParamValue")]
public MUpsParamsVal GetUpsParamValue()
{
return CmnUpsBaseInfo.UPS01.F_UpsParamsVal;
}
/// <summary>
/// UPS设备通讯重新连接
/// </summary>
/// <returns></returns>
[HttpPost]
[Route("/api/[controller]/SetUpsNetReConnect")]
public void UpsNetReConnect()
{
new UpsEqmManger().UpsNetReConnectThread();
}
}
}