mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-13 15:36:51 +01:00
Fix unsubscribing from short topics (two octets length)
Signed-off-by: Mariusz Suchora <mariusz.suchora@tieto.com>
This commit is contained in:
@@ -185,7 +185,6 @@ void MQTTSNSubscribeHandler::handleUnsubscribe(Client* client, MQTTSNPacket* pac
|
|||||||
}
|
}
|
||||||
else if (topicFilter.type == MQTTSN_TOPIC_TYPE_SHORT)
|
else if (topicFilter.type == MQTTSN_TOPIC_TYPE_SHORT)
|
||||||
{
|
{
|
||||||
MQTTGWPacket* unsubscribe = new MQTTGWPacket();
|
|
||||||
char shortTopic[3];
|
char shortTopic[3];
|
||||||
shortTopic[0] = topicFilter.data.short_name[0];
|
shortTopic[0] = topicFilter.data.short_name[0];
|
||||||
shortTopic[1] = topicFilter.data.short_name[1];
|
shortTopic[1] = topicFilter.data.short_name[1];
|
||||||
|
|||||||
Reference in New Issue
Block a user