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

Retain Flag not working #1035

Open
nataizya opened this issue Nov 30, 2023 · 1 comment
Open

Retain Flag not working #1035

nataizya opened this issue Nov 30, 2023 · 1 comment

Comments

@nataizya
Copy link

Hi,

I am new to programming ESPs and using the PubSubClient so bear with me.

I am trying to publish retained messages to AWS IoT Core with the following line of code:

client.publish(AWS_IOT_STATUS_TOPIC, jsonBuffer, true);

Everything runs fine with no errors but the message is not published to my topic. When I remove the retained flag and have the code as below, the message is published successfully and I can see it in my topic.

client.publish(AWS_IOT_STATUS_TOPIC, jsonBuffer);

I am using the PubSubClient version 2.8 on an ESP8266EX.

Is there anything I could be missing?

@HotNoob
Copy link

HotNoob commented Feb 29, 2024

having the same problem.

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

2 participants