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

Retained messages are not received #46

Open
GreatSnoopy opened this issue Sep 2, 2020 · 3 comments
Open

Retained messages are not received #46

GreatSnoopy opened this issue Sep 2, 2020 · 3 comments

Comments

@GreatSnoopy
Copy link

Hello,
Is there a known issue with retained messages not being received?
I am using ArduinoMqttClient on a ESP32 type board. I am able to successfully subscribe to 2 topics and i can successfully receive any message that comes on those topic AFTER my application is running. However, retained messages on that topic are never being received.

@aentinger
Copy link
Contributor

Hi, possibly a broker problem? If you connect with a MQTT command line client, can you then receive the retained messages?

@GreatSnoopy
Copy link
Author

GreatSnoopy commented Sep 3, 2020

Not a problem with the broker. Works as expected with mosquitto_sub on a desktop machine in the network as well as with a sketch based on https://github.com/plapointe6/EspMQTTClient on the same ESP32 board.

@Webbeh
Copy link

Webbeh commented Jan 5, 2021

I have a similar issue.

If you subscribe to multiple topics, I only receive one of the retained messages sometimes, and sometimes I don't.

I had to subscribe in cascade (subscribe, read the message received, subscribe to the next, ...) to avoid this issue.

Also when you subscribe, I find that listening to incoming messages with no operation in between greatly improves my luck.

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

No branches or pull requests

3 participants