From 700ca509ba853d1615ea3e5c470d2532006f0e1e Mon Sep 17 00:00:00 2001
From: darker <mr.darker@163.com>
Date: 星期五, 17 一月 2025 15:21:34 +0800
Subject: [PATCH] 1. 添加报警管理器,新增设备名称
---
SourceCode/Bond/Servo/Model.cpp | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/SourceCode/Bond/Servo/Model.cpp b/SourceCode/Bond/Servo/Model.cpp
index 548e170..c4e39d0 100644
--- a/SourceCode/Bond/Servo/Model.cpp
+++ b/SourceCode/Bond/Servo/Model.cpp
@@ -32,6 +32,11 @@
m_configuration.setFilepath((LPTSTR)(LPCTSTR)strIniFile);
m_configuration.getUnitId(strUnitId);
+ // 机器型号和软件版本号应从配置中读取,当前先固定值
+ CString strModeType = _T("Bond2860");
+ CString strSoftRev = _T("1.0.2");
+
+
// Log
CString strLogDir;
@@ -52,6 +57,8 @@
});
+ m_hsmsPassive.setEquipmentModelType((LPTSTR)(LPCTSTR)strModeType);
+ m_hsmsPassive.setSoftRev((LPTSTR)(LPCTSTR)strSoftRev);
m_hsmsPassive.init(this, "APP", 7000);
--
Gitblit v1.9.3