From 96536e0052cc29e9fb9fab729fe2f50f53bcc084 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 10 十一月 2023 17:56:53 +0800 Subject: [PATCH] 切换设备时不需要重启任务 --- constvar/const.go | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/constvar/const.go b/constvar/const.go index a7e2065..e6f9b85 100644 --- a/constvar/const.go +++ b/constvar/const.go @@ -21,7 +21,8 @@ const ( PlcStartAddressValueTypeString PlcStartAddressValueType = "string" - PlcStartAddressValueTypeInt PlcStartAddressValueType = "int" + PlcStartAddressValueTypeInt16 PlcStartAddressValueType = "int16" + PlcStartAddressValueTypeInt32 PlcStartAddressValueType = "int32" ) const ( @@ -80,7 +81,7 @@ ParityNull Parity = 3 //鏃犳牎楠� ) -func (p Parity) String() string { +func (p Parity) ToString() string { switch p { case ParityEven: return "E" @@ -105,7 +106,7 @@ ProblemCodeNetwork ProblemCode = "network" //缃戠粶閿欒 ProblemCodeDB ProblemCode = "db" //鏁版嵁搴撹繛鎺ラ敊璇� ProblemCodeSerf ProblemCode = "serf" //鏈姞鍏erf闆嗙兢 - ProblemCodeNsq ProblemCode = "nsq" //鏈繛鎺ユ秷鎭槦鍒� + ProblemCodeCloud ProblemCode = "cloud" //鏈繛鎺ヤ簯绔� ProblemCodeDevice ProblemCode = "device" //鏈粦瀹氳澶� ProblemCodeProcessModel ProblemCode = "process_model" //宸ヨ壓鍙傛暟缂哄け ProblemCodePlcConfig ProblemCode = "plc_config" //plc閰嶇疆缂哄け -- Gitblit v1.8.0