Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QoS2 PUBREC causes connection drop #64

Open
oaken-source opened this issue Mar 5, 2022 · 0 comments
Open

QoS2 PUBREC causes connection drop #64

oaken-source opened this issue Mar 5, 2022 · 0 comments
Labels
type: imperfection Perceived defect in any part of project

Comments

@oaken-source
Copy link

oaken-source commented Mar 5, 2022

I'm using ArduinoMqttClient together with a mosquitto broker, and sometimes when sending a QoS2 message, the connection will drop silently. (It seems this always happens on the second QoS2 message, but I'm not sure)

This is the output of mosquitto at the time of the connection drop:

1643105742: Received PUBLISH from mqtt:topic:01045ea9a2:a24a82972a (d0, q2, r0,
m2, 'mqtt:topic:01045ea9a2:a24a82972a/Notify', ... (29 bytes))
1643105742: Sending PUBREC to mqtt:topic:01045ea9a2:a24a82972a (m2, rc0)
1643105742: Received PINGREQ from mqtt:topic:01045ea9a2:a24a82972a
1643105742: Sending PINGRESP to mqtt:topic:01045ea9a2:a24a82972a
1643105742: Received DISCONNECT from mqtt:topic:01045ea9a2:a24a82972a
1643105742: Client mqtt:topic:01045ea9a2:a24a82972a disconnected.

It seems like ArduinoMqttClient responds to PUBREC with a PINGREQ instead of the correct message. How could this happen?

@per1234 per1234 added the type: imperfection Perceived defect in any part of project label Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants