Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Which topic should client subscribe to know a property of desired document become null? #54

Closed
tranduy216 opened this issue Jun 29, 2021 · 2 comments

Comments

@tranduy216
Copy link

Hi AWS team,

Currently, client is using /update/delta to sync "reported" and "desired" document.
However, in case, a property of desired document become null, there is no message send to /update/delta.
Could you guide me how the client know a property of desired document become null?

Thanks,

@gausekha
Copy link
Contributor

gausekha commented Jul 26, 2021

Hi,

Thanks for the question. Your understanding is correct. When the desired value is set to null, both the reported and desired fields change to null and the values should appear in the /updated/documents and /updated/accepted topics. Another suggestion to observe these changes would be to subscribe to the topic /update/# in the MQTT client. Using the wildcard would help observe the shadow behavior more clearly as updates to any of these topics would show up in the test client. An example of this use case is described in this document: https://docs.aws.amazon.com/iot/latest/developerguide/interact-lights-device-shadows.html

Please let me know if this helped answer your question. If you would like to learn more about the various MQTT reserved topics, please refer to this doc page: https://docs.aws.amazon.com/iot/latest/developerguide/device-shadow-mqtt.html.

@gausekha
Copy link
Contributor

Hi,

I'm closing this issue based on the previous comment. Please feel free to reopen the issue if it didn't help answer your question.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants