From 824657ff48aac1736491667c05cd733f8728c427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leandro=20Ant=C3=B4nio=20Farias=20Machado?= Date: Tue, 9 May 2023 00:40:55 -0300 Subject: [PATCH] fix(mqtt): assigned client id in user-property --- backend/services/mochi/server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/services/mochi/server.go b/backend/services/mochi/server.go index 7c23c7d..75777a3 100644 --- a/backend/services/mochi/server.go +++ b/backend/services/mochi/server.go @@ -507,7 +507,8 @@ func (s *Server) sendConnack(cl *Client, reason packets.Code, present bool) erro ServerKeepAliveFlag: true, ReceiveMaximum: s.Options.Capabilities.ReceiveMaximum, // 3.2.2.3.3 Receive Maximum User: []packets.UserProperty{{Key: "subscribe-topic", Val: "oktopus/v1/agent/" + clUser}}, - AssignedClientID: clUser, + //AssignedClientID: clUser, + //Device doesn't recognize assigned client id in an attempt of reconnection } if reason.Code >= packets.ErrUnspecifiedError.Code {