Browse Source

test topic

lijian 1 year ago
parent
commit
75175c3d46
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/emqx-agent/agent.go

+ 1 - 1
services/emqx-agent/agent.go

@@ -216,7 +216,7 @@ func (a *Agent) SendCommand(args rpcs.ArgsSendCommand, reply *rpcs.ReplySendComm
 		return nil
 	}
 	product := &models.Product{}
-	err = server.RPCCallByName(nil, rpcs.RegistryServerName, "Registry.FindProduct", device.ProductID, device)
+	err = server.RPCCallByName(nil, rpcs.RegistryServerName, "Registry.FindProduct", device.ProductID, product)
 	if err != nil {
 		server.Log.Errorf("device not found %s", args.DeviceId)
 		return nil