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

gefragt vor 4 Jahren187 Aufrufe
2 Antworten
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.

beantwortet vor 4 Jahren
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

beantwortet vor 4 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen