Skip to content

Commit

Permalink
Message identifier should be 16bits
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyen committed Oct 21, 2014
1 parent 48ddc3d commit dea7766
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libemqtt.c
Expand Up @@ -78,10 +78,10 @@ uint16_t mqtt_parse_rem_len(const uint8_t* buf) {
return value;
}

uint8_t mqtt_parse_msg_id(const uint8_t* buf) {
uint16_t mqtt_parse_msg_id(const uint8_t* buf) {
uint8_t type = MQTTParseMessageType(buf);
uint8_t qos = MQTTParseMessageQos(buf);
uint8_t id = 0;
uint16_t id = 0;

//printf("mqtt_parse_msg_id\n");

Expand Down

0 comments on commit dea7766

Please sign in to comment.