From 9c67c7593954c46786f0c9bfabb371d73b1e8bc2 Mon Sep 17 00:00:00 2001 From: tomoaki Date: Sat, 2 Oct 2021 11:21:21 +0900 Subject: [PATCH] Bugfix of #246 Revert a line deleted by commit 15c527e Signed-off-by: tomoaki --- MQTTSNGateway/src/MQTTGWPublishHandler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/MQTTSNGateway/src/MQTTGWPublishHandler.cpp b/MQTTSNGateway/src/MQTTGWPublishHandler.cpp index 6185b92..20381f1 100644 --- a/MQTTSNGateway/src/MQTTGWPublishHandler.cpp +++ b/MQTTSNGateway/src/MQTTGWPublishHandler.cpp @@ -101,6 +101,7 @@ void MQTTGWPublishHandler::handlePublish(Client* client, MQTTGWPacket* packet) topicId.type = tp->getType(); topicId.data.long_.len = pub.topiclen; topicId.data.long_.name = pub.topic; + topicId.data.id = tp->getTopicId(); } else {