From af739c7dc535d377f0beb55bfea8f44aaccf6f61 Mon Sep 17 00:00:00 2001 From: pengwang <969753572@qq.com> Date: Thu, 3 Jun 2021 17:30:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A1=E3=80=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9emqx=E4=B8=8A=E6=8A=A5=E6=9C=8D=E5=8A=A1=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- device/deviceNode.go | 2 +- httpServer/routerReport.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/device/deviceNode.go b/device/deviceNode.go index 8cec964..9ca7424 100644 --- a/device/deviceNode.go +++ b/device/deviceNode.go @@ -59,7 +59,7 @@ func (d *DeviceNodeTemplate) NewVariables() []VariableTemplate { } lock.Lock() - setting.Logger.Debugf("DeviceTypePluginMap %v", DeviceTypePluginMap) + //setting.Logger.Debugf("DeviceTypePluginMap %v", DeviceTypePluginMap) for k, v := range DeviceNodeTypeMap.DeviceNodeType { if d.Type == v.TemplateType { //调用NewVariables diff --git a/httpServer/routerReport.go b/httpServer/routerReport.go index de5d7db..d3028de 100644 --- a/httpServer/routerReport.go +++ b/httpServer/routerReport.go @@ -62,7 +62,7 @@ func apiSetReportGWParam(context *gin.Context) { fmt.Println("ReportServiceGWParamAliyun json unMarshall err,", err) } mqttAliyun.ReportServiceParamListAliyun.AddReportService(ReportServiceGWParamAliyun) - case "Emqx": + case "EMQX.MQTT": case "Huawei.MQTT": ReportServiceGWParamHuawei := mqttHuawei.ReportServiceGWParamHuaweiTemplate{} if err := json.Unmarshal(bodyBuf[:n], &ReportServiceGWParamHuawei); err != nil { @@ -269,7 +269,7 @@ func apiSetReportNodeWParam(context *gin.Context) { } } setting.Logger.Debugf("ParamListAliyun %v\n", mqttAliyun.ReportServiceParamListAliyun.ServiceList) - case "Emqx.MQTT": + case "EMQX.MQTT": case "Huawei.MQTT": ReportServiceNodeParamHuawei := mqttHuawei.ReportServiceNodeParamHuaweiTemplate{}