Skip to content

IoT Thing Retain messages callback returns false #465

Answered by MikeDombo
c-gc asked this question in Q&A
Discussion options

You must be logged in to vote

Note that the retain flag is only set for retained messages which are sent upon first subscription.

https://docs.aws.amazon.com/iot/latest/developerguide/mqtt.html#mqtt-retain:~:text=Retained%20messages%20received%20upon%20subscribing%20to%20a%20retained%20message%20topic%20have%20the%20RETAIN%20flag%20set.%20Retained%20messages%20that%20are%20received%20by%20a%20subscribing%20client%20after%20subscription%2C%20don%27t.

Retained messages received upon subscribing to a retained message topic have the RETAIN flag set. Retained messages that are received by a subscribing client after subscription, don't.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@c-gc
Comment options

@MikeDombo
Comment options

Answer selected by jmklix
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants