Usage of named shadow

0

Hi,

I am using aws-io-device-sdk-python package: https://github.com/aws/aws-iot-device-sdk-python/tree/e0f9eef8aafdf6319022d7972d3f1f65eefb784d for an AWS shadow purpose.

I want to use named shadow, however, I have seen that this library only send message for unamed shadow:

self._topicGeneral = "$aws/things/" + str(self._shadowName) + "/shadow/" + str(self._actionName) ( found in https://github.com/aws/aws-iot-device-sdk-python/blob/e0f9eef8aafdf6319022d7972d3f1f65eefb784d/AWSIoTPythonSDK/core/shadow/shadowManager.py )
while the shape of the topic for a named shadow should be: $aws/things/thingName/shadow/name/shadowName/actionName

Is there any way to use this library without modifying for named shadow?

Thank you in advance

tom
已提問 2 年前檢視次數 328 次
2 個答案
1

Hi,

you are looking at an older version of the AWS IoT Device SDK for Python which does not get feature updates.

The current AWS IoT Device SDK v2 for Python has methods to interact with named shadows.

Cheers,
Philipp

AWS
專家
已回答 2 年前
profile pictureAWS
專家
Greg_B
已審閱 2 年前
0

Thank you very much Philipp. I never saw there was a v2 of the SDK.

Best regards Tom

tom
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南