lijian hai 4 meses
pai
achega
826122e14d
Modificáronse 1 ficheiros con 7 adicións e 7 borrados
  1. 7 7
      services/emqx-agent/sub_dev.go

+ 7 - 7
services/emqx-agent/sub_dev.go

@@ -97,13 +97,13 @@ func (d *MqttClient) SubDevMsg(handle Handle) error {
 }
 
 func (d *MqttClient) subDevMsg(cli mqtt.Client, handle Handle) error {
-	err := d.subscribeWithFunc(cli, TopicConnectStatus, d.subConnectStatus(handle))
-	server.Log.Infof("subDevMsg")
-	if err != nil {
-		server.Log.Infof("subDevMsg err:%v", err)
-		return err
-	}
-	err = d.subscribeWithFunc(cli, TopicThing, func(ctx context.Context, topic string, payload []byte) error {
+	//err := d.subscribeWithFunc(cli, TopicConnectStatus, d.subConnectStatus(handle))
+	//server.Log.Infof("subDevMsg")
+	//if err != nil {
+	//	server.Log.Infof("subDevMsg err:%v", err)
+	//	return err
+	//}
+	err := d.subscribeWithFunc(cli, TopicThing, func(ctx context.Context, topic string, payload []byte) error {
 		return handle(ctx).Message(topic, payload)
 	})
 	if err != nil {