Get the latest data using shadowGet to my device.

0

Hi ,
When i try to get a shadow state of a device using shadowGET MQTT IOT client , the call back fails with get_rejected .
I did create the subscription for the device and shadow service.

2020-05-24 22:40:53,588 - AWSIoTPythonSDK.core.shadow.deviceShadow - INFO - Subscribed to get accepted/rejected topics for deviceShadow: Storage_Lid
2020-05-24 22:40:53,589 - AWSIoTPythonSDK.core.protocol.mqtt_core - INFO - Performing sync publish...
Update request f6771d3c-b728-497e-8227-df12d4b08444 rejected!

Kindly suggest options to further debug or pointers to understand the implementation

asked 4 years ago182 views
2 Answers
0

Hi AmbarishGK,

A couple of things worth trying:

1, If you haven't, I highly recommend you to walk through the Greengrass tutorial module 5 (https://docs.aws.amazon.com/greengrass/latest/developerguide/module5.html) just to make sure all the settings are correct.
2, You can also look into the GGConnManager.log under greengrass/ggc/var/log/system/ to see if there is any error related to the request.

answered 4 years ago
0

I have found the solution. I searched multiple other resources to find it.
It was an issue with the subscriptions I did not specify it right. It goes

Source    Target                                       Topic
Device    Local Shadow Service(LSS)	$aws/things/<thingname>/shadow/get
LSS       Device               $aws/things/<thingname>/shadow/get/accepted
LSS       Device               $aws/things/<thingname>/shadow/get/rejected

So now anything that is updated in the things shadow can be recieved in the Device.

Edited by: AmbarishGK on Jun 15, 2020 12:37 PM

Edited by: AmbarishGK on Jun 15, 2020 12:38 PM

answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions