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

질문됨 4년 전187회 조회
2개 답변
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.

답변함 4년 전
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

답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠