Skip to content

Commit

Permalink
fixed qos flows
Browse files Browse the repository at this point in the history
  • Loading branch information
256dpi committed Nov 14, 2017
1 parent a20be88 commit bb48a8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ static lwmqtt_err_t lwmqtt_cycle(lwmqtt_client_t *client, size_t *read, lwmqtt_p
// define ack packet
lwmqtt_packet_type_t ack_type = LWMQTT_NO_PACKET;
if (msg.qos == LWMQTT_QOS1) {
ack_type = LWMQTT_PUBREC_PACKET;
ack_type = LWMQTT_PUBACK_PACKET;
} else if (msg.qos == LWMQTT_QOS2) {
ack_type = LWMQTT_PUBREL_PACKET;
ack_type = LWMQTT_PUBREC_PACKET;
}

// encode ack packet
Expand Down

0 comments on commit bb48a8f

Please sign in to comment.