Fix topic name registration procedure started by GW when handling PUBLISH message

Signed-off-by: Mariusz Suchora <mariusz.suchora@tieto.com>
This commit is contained in:
Mariusz Suchora
2018-02-23 10:30:45 +01:00
parent c49a040569
commit bba3f1dede

View File

@@ -129,6 +129,7 @@ void MQTTGWPublishHandler::handlePublish(Client* client, MQTTGWPacket* packet)
MQTTSNPacket* regPacket = new MQTTSNPacket();
MQTTSNString topicName;
topicName.cstring = 0;
topicName.lenstring.len = topicId.data.long_.len;
topicName.lenstring.data = topicId.data.long_.name;