修改:1、修改emqx上报服务名称

This commit is contained in:
pengwang 2021-06-03 17:30:50 +08:00
parent 2669d514f2
commit af739c7dc5
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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{}