mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-15 16:36:52 +01:00
@@ -100,7 +100,8 @@ MQTTGWPacket* MQTTSNSubscribeHandler::handleSubscribe(Client* client, MQTTSNPack
|
|||||||
topicstr[0] = topicFilter.data.short_name[0];
|
topicstr[0] = topicFilter.data.short_name[0];
|
||||||
topicstr[1] = topicFilter.data.short_name[1];
|
topicstr[1] = topicFilter.data.short_name[1];
|
||||||
topicstr[2] = 0;
|
topicstr[2] = 0;
|
||||||
topicId = 0;
|
topicId = topicFilter.data.short_name[0] << 8;
|
||||||
|
topicId |= topicFilter.data.short_name[1];
|
||||||
subscribe = new MQTTGWPacket();
|
subscribe = new MQTTGWPacket();
|
||||||
subscribe->setSUBSCRIBE(topicstr, (uint8_t)qos, (uint16_t)msgId);
|
subscribe->setSUBSCRIBE(topicstr, (uint8_t)qos, (uint16_t)msgId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user