lijian il y a 2 ans
Parent
commit
04f8924885
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      pkg/ruleEngine/nodes/mqtt_broker_node.go

+ 1 - 1
pkg/ruleEngine/nodes/mqtt_broker_node.go

@@ -120,8 +120,8 @@ func (M *MQTTBrokerNode) OnMessage(ctx ruleEngine.Context, message *protocol.Mes
 		return nil
 	}
 	topic := stringBuf.String()
-	token := M.mqttClient.Publish(topic, 0, false, message.Data)
 	fmt.Printf("+++++++++++++++%v\r\n", M.mqttClient)
+	token := M.mqttClient.Publish(topic, 0, false, message.Data)
 	if token.Error() != nil {
 		ctx.TellNext(message, protocol.Failure)
 	} else {