fix(mqttClient): AlarmTopic upload failure

fix: 报警主题中文名称错误

fix: 报警事件订阅漏写
This commit is contained in:
Kimdiego2098
2024-04-29 10:03:55 +08:00
parent f548c27179
commit c22dde8008
2 changed files with 4 additions and 1 deletions

View File

@@ -55,6 +55,9 @@ public abstract class BusinessBaseWithCacheIntervalAlarmModel<VarModel, DevModel
_exTTimerTick = new(_businessPropertyWithCacheInterval.BusinessInterval);
_exT2TimerTick = new(_businessPropertyWithCacheInterval.BusinessInterval);
HostedServiceUtil.AlarmHostedService.OnAlarmChanged -= AlarmValueChange;
HostedServiceUtil.AlarmHostedService.OnAlarmChanged += AlarmValueChange;
// 根据业务属性的缓存是否为间隔上传来决定事件绑定
if (!_businessPropertyWithCacheInterval.IsInterval)
{

View File

@@ -21,7 +21,7 @@
"IsAlarmList": "报警列表上传",
"DeviceTopic": "设备主题",
"VariableTopic": "变量主题",
"AlarmTopic": "比较主题",
"AlarmTopic": "报警主题",
"IsInterval": "启用定时上传",
"BusinessInterval": "定时上传间隔",