From 74f8cd07a39795656573d4e4bb2fe85a6dadbb8c Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期六, 02 九月 2023 15:15:44 +0800
Subject: [PATCH] 从云端请求工艺参数,加入deviceId字段用于消息过滤
---
constvar/const.go | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/constvar/const.go b/constvar/const.go
index dc2f30e..3856612 100644
--- a/constvar/const.go
+++ b/constvar/const.go
@@ -6,6 +6,7 @@
NsqTopicSendPlcAddress = "aps.%v.sendPlcAddress"
NsqTopicProcessParamsRequest = "aps.%v.processParams.request"
NsqTopicProcessParamsResponse = "aps.%v.processParams.response"
+ NsqTopicApsProcessParams = "aps.%v.aps.processParams" //鏈変簡鏂扮殑宸ヨ壓妯″瀷
)
type PlcStartAddressType int
@@ -38,3 +39,8 @@
func (slf PlcMethod) Valid() bool {
return slf == PlcMethodModbusTCP || slf == PlcMethodSerial
}
+
+const (
+ PlcCacheKeyFinishNumber = "finish_number"
+ PlcCacheKeyTotalNumber = "total_number"
+)
--
Gitblit v1.8.0