Fix handling PUBREC message received from client

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

View File

@@ -12,6 +12,7 @@
* *
* Contributors: * Contributors:
* Tomoaki Yamaguchi - initial API and implementation and/or initial documentation * Tomoaki Yamaguchi - initial API and implementation and/or initial documentation
* Tieto Poland Sp. z o.o. - Gateway improvements
**************************************************************************************/ **************************************************************************************/
#include "MQTTSNGWDefines.h" #include "MQTTSNGWDefines.h"
@@ -155,6 +156,7 @@ void PacketHandleTask::run()
case MQTTSN_PUBACK: case MQTTSN_PUBACK:
_mqttsnPublish->handlePuback(client, snPacket); _mqttsnPublish->handlePuback(client, snPacket);
break; break;
case MQTTSN_PUBREC:
_mqttsnPublish->handleAck(client, snPacket, PUBREC); _mqttsnPublish->handleAck(client, snPacket, PUBREC);
break; break;
case MQTTSN_PUBREL: case MQTTSN_PUBREL: