From 35fc42d2b9399c935d9b3e1846017a898613c065 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Sun, 5 May 2019 22:37:06 +0200 Subject: [PATCH] mqtt_msg: added missing message type for unsubscribe msg type Closes #109 --- lib/mqtt_msg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mqtt_msg.c b/lib/mqtt_msg.c index a9b76b4..1ee803c 100644 --- a/lib/mqtt_msg.c +++ b/lib/mqtt_msg.c @@ -329,6 +329,7 @@ uint16_t mqtt_get_id(uint8_t* buffer, uint16_t length) case MQTT_MSG_TYPE_SUBACK: case MQTT_MSG_TYPE_UNSUBACK: case MQTT_MSG_TYPE_SUBSCRIBE: + case MQTT_MSG_TYPE_UNSUBSCRIBE: { // This requires the remaining length to be encoded in 1 byte, // which it should be.