forked from espressif/esp-mqtt
mqtt_msg: added missing message type for unsubscribe msg type
Closes #109
This commit is contained in:
@@ -329,6 +329,7 @@ uint16_t mqtt_get_id(uint8_t* buffer, uint16_t length)
|
|||||||
case MQTT_MSG_TYPE_SUBACK:
|
case MQTT_MSG_TYPE_SUBACK:
|
||||||
case MQTT_MSG_TYPE_UNSUBACK:
|
case MQTT_MSG_TYPE_UNSUBACK:
|
||||||
case MQTT_MSG_TYPE_SUBSCRIBE:
|
case MQTT_MSG_TYPE_SUBSCRIBE:
|
||||||
|
case MQTT_MSG_TYPE_UNSUBSCRIBE:
|
||||||
{
|
{
|
||||||
// This requires the remaining length to be encoded in 1 byte,
|
// This requires the remaining length to be encoded in 1 byte,
|
||||||
// which it should be.
|
// which it should be.
|
||||||
|
Reference in New Issue
Block a user