using Microsoft.AspNetCore.Mvc; using Module.FireCtrl.ModBusTcp; namespace Monitor.EqmMgr.WebApi.Controllers { [ApiController] [Route("[controller]")] public class FireCtrlParamController : ControllerBase { private readonly ILogger _logger; public FireCtrlParamController(ILogger logger) { _logger = logger; } /// /// 消防系统状态 /// /// [HttpPost] [Route("/api/[controller]/GetFireStatusValue")] public MFireStatusValue GetFireStatusValue() { return CmnFireBaseInfo.FRC01.F_FireStatusValue; } /// /// 故障信息值 /// /// [HttpPost] [Route("/api/[controller]/GetFireFaultInfo")] public List GetFireFaultInfo() { return CmnFireBaseInfo.FRC01.F_FaultInformations; } /// /// 传感器信息值 /// /// [HttpPost] [Route("/api/[controller]/GetSensorInfo")] public List GetSensorInfo() { return CmnFireBaseInfo.FRC01.F_SensorInformations; } /// /// 分区信息值 /// /// [HttpPost] [Route("/api/[controller]/GetPartitionVal")] public MPartitionValue GetPartitionVal() { return CmnFireBaseInfo.FRC01.F_Partition; } /// /// 消防灭火器状态 /// /// [HttpPost] [Route("/api/[controller]/GetFireExtinguisher")] public MFireExtinguisher GetFireExtinguisher() { return CmnFireBaseInfo.FRC01.F_FireExtinguisher; } /// /// 消防设备通讯重新连接 /// /// [HttpPost] [Route("/api/[controller]/SetFireNetReConnect")] public void FireNetReConnect() { new FireEqmManager().FireNetReConnectThread(); } } }