mqtt_msg: added missing message type for unsubscribe msg type

Closes #109
This commit is contained in:
David Cermak
2019-05-05 22:37:06 +02:00
parent 7d22ab5fe6
commit 35fc42d2b9

View File

@@ -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.