Skip to content

Conversation

@RohithS98
Copy link

@RohithS98 RohithS98 commented Jun 6, 2018

Client automatically replies with PUBACK when receiving a PUBLISH of QoS 1 while waiting for another message
#30 - Bug fix

Client automatically replies with PUBACK when receiving a PUBLISH of QoS 1 while waiting for another message
if(type == packet[1]){
return packet;
}
mqtt_sn_send_puback(sock,(publish_packet_t *)packet,rc);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puback is sent in

mqtt_sn_send_puback(sock, packet, MQTT_SN_ACCEPTED);

I am trying to remember why mqtt_sn_print_publish_packet() is inside mqtt_sn_wait_for()

But I guess that is the same reason why you are missing some PUBACKs.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, it was because of issue #4

Base automatically changed from master to main January 18, 2021 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants